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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
52d858444ea94359f750b4ae1d73931bccec1ea9 | 59905242bfd494ea490eb1babec8840c7ed407bc | /code/player.h | 87d7a46e0f5c2203e8e56b3cbbeb4f4f81dd67af | [
"MIT"
] | permissive | seanballais/foxy-journey-port | ec51d014f0f4cada2ba762c5b078738e7fc7b181 | 55d95632c11043197e81b45ff3a1032d11210368 | refs/heads/master | 2023-01-22T22:23:48.539738 | 2020-12-05T08:41:00 | 2020-12-05T08:41:00 | 318,729,370 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 357 | h | player.h | #pragma once
#include "physicObject.h"
class Player : public physicsObject
{
public:
Player(float px, float py);
~Player();
virtual void update(float deltaTime) override;
virtual void draw(sf::RenderTarget& target, sf::RenderStates states) const;
private:
int animationSpeed;
int currentFram... |
37d1f1b7f898dea0a6dba8836ab120e70a5ee374 | ca611d70f40a49deb16ca30c78ba2f0415fcaba4 | /POJ 2155 Matrix(二维树状数组).cpp | baafbcf6f7fd23be94720185d44ca9716d4dcab5 | [] | no_license | scaugrated/ACM-code | c3ec721f875514733ad46eee5632e6b2d3a313f0 | 37a501a9aa0f3186fb404a48734a968a932b3ce1 | refs/heads/master | 2022-11-19T21:10:58.897130 | 2018-08-22T09:16:57 | 2018-08-22T09:16:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,097 | cpp | POJ 2155 Matrix(二维树状数组).cpp | #include<iostream>
#include<algorithm>
#include<cstring>
#include<cmath>
#include<cstdio>
using namespace std;
typedef long long LL;
const int INF=0x3f3f3f3f;
const int maxn=1005;
#define ms(a,x) memset(a,x,sizeof(a))
inline LL read()
{
LL x=0,f=1;char ch=getchar();
while(ch<'0'||ch>'9'){if(ch=='-')f=-1;ch=getc... |
54216af5d4d37bb6f576326262606ad32052396c | a9436881ed4def94b84c0597a15c34fd2d7a2328 | /Linguagem C/Atividade 12.cpp | d07e9c320581eb492c2ae60183c80e1adc704beb | [] | no_license | RakelSousa17/PA | d8271f921d173acd6fdc73daf138267ea8d6c2c2 | c02d7fdcb66cbfe5c65fd9d6679ccd0af2cd91a1 | refs/heads/master | 2020-05-17T12:06:59.474480 | 2019-04-26T22:46:07 | 2019-04-26T22:46:07 | 183,702,074 | 0 | 0 | null | null | null | null | WINDOWS-1250 | C++ | false | false | 332 | cpp | Atividade 12.cpp | #include<stdio.h>
#include<stdlib.h>
#include<locale.h>
int main(){
setlocale(LC_ALL, "Portuguese");
float h, m, s;
printf("Entre com os segundos:");
scanf("%f",&s);
m=s/60;
h=m/60;
printf ("Os segundos correpondem aos seguintes minutos: %f", m);
printf("\nOs segundos correpondem ás seguintes horas: %f", h);
r... |
e87d422cfd8cb5b66aa1761fd27909355543cb6f | abdb1ec5ec909bee16528ca0769f8f3b8a3344e7 | /My_code/code library/SHAHINVAICODE/string algorithm/Hash Function.cpp | 6b69640ae083edde43860bc8b69ddedfe628b5ed | [] | no_license | ronee12/Code-Library | 3aba7e3d2d9097309702a4fc8ca4c86052d64073 | 41f6bfae5eaa9ef474b792c12b938964003a5862 | refs/heads/master | 2020-04-02T00:11:37.360873 | 2018-10-19T14:12:15 | 2018-10-19T14:12:15 | 153,792,980 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,529 | cpp | Hash Function.cpp | #include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<functional>
#include<math.h>
#include<assert.h>
#include<stdarg.h>
#include<time.h>
#include<limits.h>
#include<ctype.h>
#include<string>
#include<map>
#include<set>
#include<queue>
#include<algorithm>
#include<vector>
#include<iostream>
#include<sstream>... |
7d7f10d26241aca83382a2b41b3eed400b6cef1e | 69ca00582831c9b00f01f0ea75ac5f0ff05d1dc5 | /model/HeTaoIO.cpp | 4efca6a57ce818c8a642f45cc15f11ccf3d8db2b | [
"MIT"
] | permissive | zidong0822/codal-hetao | 4bdcaf8ac2296f539c991309d4f1926ae3e9b8e1 | 3050774dcbe4d30800e23d32b1101f26c3d94a5c | refs/heads/master | 2020-12-08T17:38:26.959637 | 2020-09-11T03:22:38 | 2020-09-11T03:22:38 | 233,050,142 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,264 | cpp | HeTaoIO.cpp | /*
The MIT License (MIT)
Copyright (c) 2017 Lancaster University.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy... |
b266795c87b82cb99d65e7a4827a6f44225f72b0 | 469db3635bf98653cbcb8602981312706287e02f | /programsettings.cpp | fbb5326e32de1d3ee3a4df55781eeb2bd5fb419d | [] | no_license | welemir/VarModemStudy | 59144610fc3f80d9764a67a25904d08860fde4b3 | 6a6ac5e44bafbb78cb989db779f56d3833d074cb | refs/heads/master | 2021-01-16T20:41:57.511945 | 2013-07-23T15:41:20 | 2013-07-24T11:19:17 | 61,075,746 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 159 | cpp | programsettings.cpp | #include "programsettings.h"
ProgramSettings::ProgramSettings(QObject *parent) :
QSettings("VarModemStudy.ini", QSettings::IniFormat, parent)
{
}
|
04de617cb22e9f436e20462e835e38cf867b04ee | 1e1ad5ae19f17e7db246cc3f911d3cc4c2072e65 | /05 - Mathematics/01 - Ad Hoc Mathematics Problems/01 - The Simpler Ones/11614 - Etruscan Warriors Never Play Chess.cpp | 9991b144e5d5c22768d7c95dc5c0325b1ccec333 | [] | no_license | km36388/UVA-Solutions | 5d34138fd7adc4fe338cfaeb11af6155916d3309 | e5171b04d6a8bb17426245f650723d41345b7fc8 | refs/heads/master | 2020-12-11T18:16:27.847801 | 2018-08-23T16:11:29 | 2018-08-23T16:11:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 289 | cpp | 11614 - Etruscan Warriors Never Play Chess.cpp | #include <bits/stdc++.h>
typedef long long int i64;
int main() {
int tt;
i64 s;
scanf("%d", &tt);
while (tt--) {
scanf("%lld", &s);
printf("%lld\n", (i64)floor(-0.5 + sqrt(0.25 + 2 * s)));
}
return 0;
}
/*
Author: bumpy (-_-)
date: 8-Aug-2018
*/
|
982f7a237600d915b4c8a4177da4c1426122c57e | 921abfe8a10a4c0edc3035e8abc4a33d51625c1d | /BOJ/Level/10. Math2/3009.FourthDot.cpp | 5614937c78e2f5183a14358bbd517977aaa74dec | [] | no_license | gudwnsgur/Algorithm | 760fcff3b1e930bf1f8cf047c26253449b52cae9 | 016f6db056d821c918ea620d5517b00a387eff9a | refs/heads/master | 2023-05-01T03:28:17.003101 | 2023-04-18T14:08:05 | 2023-04-18T14:08:05 | 230,247,085 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 289 | cpp | 3009.FourthDot.cpp | #include <iostream>
using namespace std;
int main()
{
int x, y, z;
while (1) {
cin >> x >> y >> z;
if (!x && !y && !z) break;
if (x*x + y * y == z * z || x * x + z * z == y * y || y * y + z * z == x * x)
cout << "right" << "\n";
else cout << "wrong" << "\n";
}
return 0;
}
|
4b247478493c58de92a4918231b96ba8b9c186e5 | 27dfc0b54a9c7187bce6eb819f28bdf859b878b3 | /godai_0519/util.hpp | 63e87451d3323443d664081564dc0e3c1dbcc337 | [] | no_license | godai0519/nightingale | c6824ea218ff066fb4ea3d0c4a7b18e7179c1681 | ca7ec7420af066f48e43abbc71320e0825180697 | refs/heads/master | 2021-01-19T22:32:55.748032 | 2012-11-01T12:49:36 | 2012-11-01T12:49:36 | null | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 4,811 | hpp | util.hpp |
template<typename Ty>
inline double point_to_far(const cv::Point_<Ty>& point)
{
return hypot(point.x, point.y);
}
template<typename Type>
inline double calc_distance(const cv::Point_<Type> &p1,const cv::Point_<Type> &p2)
{
return point_to_far(p1 - p2);
}
std::vector<cv::Point2f> rect_to_points(const cv::Rotate... |
487a61f49d8aab6ed49cf92a5b108ff9303629a8 | 46c937ea89163fc1bd95eb1ad61f114258cd015c | /find_single_number.cpp | 2edfbd4216cd67b07e24c00150fb09ae041a9dc7 | [] | no_license | hakonmagnus/Cpp-tutorials | a3597c2049b0a282e0c41477c4d1c442e169b49e | 35c0aac650a9c2550846c30ad74dc762f9bbb344 | refs/heads/master | 2022-04-05T22:27:01.288302 | 2020-02-05T15:17:09 | 2020-02-05T15:17:09 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 714 | cpp | find_single_number.cpp | // Given an array of integers, every element appears
// twice except for one. Find that single one.
// Input : [1 2 2 3 1]
// Output : 3
#include <iostream>
#include <vector>
using namespace std;
// #include <bits/stdc++.h>
using namespace std;
int FindSingleNumber(vector<int> nums)
{
// Write your code here
in... |
c96d513298529d9b62b4741befc0ce9fd5fc2ebe | 5152570af9240f2c6ee304ca60b231154807e8df | /DailyQuarantineApp/DailyQuarantineApp/User.h | e6d551a9fb44b9b11c2d87d12ed0b1c7b0974e56 | [] | no_license | calimandaniel/DNC | e6f303bd83002e81b37022b82b42586da38d52ad | 778f371a95f12d046d64a4148ae90970f64ec501 | refs/heads/main | 2023-04-18T13:36:55.551653 | 2021-04-18T19:56:26 | 2021-04-18T19:56:26 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 440 | h | User.h | #pragma once
#include<string>
class User
{
public:
User();
User(int id,const std::string& email);
User(User&& user);
User(const User& user);
User& operator=(const User& user);
User& operator=(User&& user);
void setId(int id);
void setEmail(const std::string& email);
const std::string getEmail()const;
int g... |
a214e57e4df2945dee0d87290f16ec6ece496a96 | ca4d70080ced49e6c9d5110a8563eafdbe79eec4 | /src/config/metadata.cpp | a068c06fbf43f55c906d5056d87aa72b85ca9934 | [] | no_license | It4innovations/espreso | f6b038dcd77f7f3677694e160a984bc45f4a4850 | 5acb7651287bd5114af736abc97c84de8a6ede99 | refs/heads/master | 2023-01-28T13:35:52.731234 | 2022-05-24T14:24:05 | 2022-06-26T06:35:31 | 66,345,061 | 18 | 6 | null | null | null | null | UTF-8 | C++ | false | false | 4,357 | cpp | metadata.cpp |
#include "metadata.h"
#include "conditions.h"
#include "esinfo/eslog.hpp"
#include <sstream>
using namespace espreso;
Unit& Unit::add(UnitLibrary unit, int exponent)
{
this->elements.push_back({unit, exponent});
return *this;
}
void ECFMetaData::checkdescription(const std::string &name, size_t size) const
{
if ... |
9b587fbe903226aa2a5cbb90fbaa75884e6906f6 | e8940f26b6102d8db7464f05b0764d93865bde1c | /windows/collapes_window/3DvisBaseManager/3DvisBaseManager/BaseLine.h | 118d0e13c077cd72361595c81a118e5e8fe0c990 | [] | no_license | zr000/ShoppingCarrier | 5350dc54cdf7aa175e1d861666d647ee543d50cb | 1c2adcf0b7f622d52342a74abeda5b644d94545c | refs/heads/master | 2021-06-24T06:01:26.492815 | 2020-12-10T03:15:31 | 2020-12-10T03:15:31 | 146,838,314 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 393 | h | BaseLine.h | #pragma once
#include "BaseInner.h"
// CBaseLine
class CBaseLine : public CWnd
{
DECLARE_DYNAMIC(CBaseLine)
public:
CBaseLine();
virtual ~CBaseLine();
protected:
DECLARE_MESSAGE_MAP()
CBaseInner CBaseInner;
public:
afx_msg void OnNcDestroy();
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg vo... |
3fa41b9e3b2f1dd442bff22e75848df9829a1754 | 045fc0567335ecab68e3a2b2e0b714d5b88495fd | /inheritance/multipath_argumrnt_constr.cpp | e9e10387e695e40dc686d0f30b5513d5b661d01c | [] | no_license | sachinpooojari/cpp | bf14805a16d1fdb6a22dec06506705ee19e3d7c9 | 46f83d6e5faa2dd17d2d14516e885e24808b28e4 | refs/heads/master | 2020-04-14T19:36:32.349875 | 2019-02-03T17:36:14 | 2019-02-03T17:36:14 | 164,064,294 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 849 | cpp | multipath_argumrnt_constr.cpp | #include<iostream>
using namespace std;
class A
{
public:
int a;
A(int x)
{
this->a=x;
cout<<"constr"<<endl;
}
~A()
{
cout<<"dest"<<endl;
}
void show()
{cout<<a<<endl;
}
};
class B:public A
{
public:
int b;
B(int x,int y):A(a)
{
this->b=y;
cout<<"constr"<<endl;
}
~B()
{
cout<<"dest"<<... |
88c17e22af5643facb6e40476b62d65c0e078ddb | 5cec37261e756a98b632eda290d4869461738403 | /testing/unit_testing/src/1_rank/output.cpp | e5fd50b2aef811f1c6e391d78bec584c9db85fac | [
"MIT"
] | permissive | maierbn/opendihu | d78630244fbba035f34f98a4f4bd0102abe57f04 | e753fb2a277f95879ef107ef4d9ac9a1d1cec16d | refs/heads/develop | 2023-09-05T08:54:47.345690 | 2023-08-30T10:53:10 | 2023-08-30T10:53:10 | 98,750,904 | 28 | 11 | MIT | 2023-07-16T22:08:44 | 2017-07-29T18:13:32 | C++ | UTF-8 | C++ | false | false | 19,237 | cpp | output.cpp | #include <Python.h> // this has to be the first included header
#include <iostream>
#include <cstdlib>
#include <fstream>
#include <cassert>
#include "gtest/gtest.h"
#include "opendihu.h"
#include "../utility.h"
#include "arg.h"
#include "stiffness_matrix_tester.h"
#include "node_positions_tester.h"
namespace Spati... |
493a83167ce92e60ca6bfea3b0267a9594a900bd | 7f610e8792081df5955492c9b55755c72c79da17 | /chewbaccaandnumber/main.cpp | a8478b1a4c393bbada77aedffaaa1e3bbf4eaed8 | [] | no_license | Parikshit22/Data-Structures-Algorithms-Cpp | 8da910d0c1ba745ccfc016e0d0865f108b30cb04 | 4515f41c8a41850bc2888d4c83b9ce5dc9b66d68 | refs/heads/master | 2022-12-09T09:54:42.240609 | 2020-09-02T03:48:43 | 2020-09-02T03:48:43 | 276,821,418 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 270 | cpp | main.cpp | #include <iostream>
using namespace std;
int main()
{
char a[100];
cin>>a;
int i=0;
if(a[0]=='9'){
i++;
}
for( ;a[i]!='\0';i++){
if((a[i]-'0')>=5){
a[i] = ('9'-a[i])+'0';
}
}
cout<<a;
return 0;
}
|
1a0ec1a0269412b8dfe77b7f270b888af4d18dce | b1ab959bd124b6158853f517e95bcbb50b8e2728 | /addgundialog.h | 70e6f5930f1ce745639f42ef8e656fb60b039afc | [] | no_license | DNDCpp/QT_army_project | 0fb431db1fb6921cc2989fe587b6782560b787b0 | 12aa0b6329690141858294e2ee73b4caddb33fb3 | refs/heads/master | 2021-06-07T05:18:15.991016 | 2016-11-04T19:43:01 | 2016-11-04T19:43:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 544 | h | addgundialog.h | #ifndef ADDGUNDIALOG_H
#define ADDGUNDIALOG_H
#include <QDialog>
namespace Ui {
class addGunDialog;
}
class addGunDialog : public QDialog
{
Q_OBJECT
public:
explicit addGunDialog(QWidget *parent = 0);
~addGunDialog();
QString gun();
double caliber();
int count();
void setGun(QString st... |
51a5ef77339f8ec78269e142a7a6df3264586e0d | b22a777d250fdd600fd1836d6d8269738999bbea | /main.hpp | 69087d3d3b183eec8f1222471dc31e589579e170 | [
"MIT"
] | permissive | anhnnpham/house-remodeling-system | 35495e0bb93728ff3fea5bf1e4da00b395f64928 | 5ea7d58806075aca524195772d9dd301187494f4 | refs/heads/master | 2020-12-10T19:32:27.966508 | 2020-01-20T20:49:11 | 2020-01-20T20:49:11 | 233,688,862 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 495 | hpp | main.hpp | #pragma once
#ifndef MAIN_HPP
#include <iostream>
#include <string>
#include <sstream>
#include <fstream>
using namespace std;
class userInfo;
class userOrder;
class userBill;
//Cost of materials for the remodel
const float PAINTCOST = .50; //per square foot
const float WALLPAPERCOST = 2.00; //per square foot... |
166eb88c4a27fa5d7eab837c0e0c027679f3b3f0 | 9d0ca5e92c40f4d016846f8d07639425fc88a4ba | /ioi-training-master/IOITC/2010/Coded/Mafia/Mafia.cpp | d9056185512ebadea16a4a3112f8af71b96e2d1b | [] | no_license | prajneya/IOI | 01532de1b92509e62214fd5a8208bc66db82c429 | c509fccd5b9ef2f0748ae834aaee759582481ad8 | refs/heads/master | 2020-06-14T09:42:58.889117 | 2016-12-16T02:42:45 | 2016-12-16T02:42:45 | 75,202,750 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 830 | cpp | Mafia.cpp | /*
Created By: Malvika Joshi
Problem: Mafia (IOITC-2010 Final-3)
*/
#include <cstdio>
#include <algorithm>
#include <vector>
#include <cstdlib>
#define MAXN 100010
using namespace std;
int rem[MAXN];
vector<int> par[MAXN];
int N,M;
int main(){
int i,k,p,set;
scanf("%d%d",&N,&M);
while(M--){
scanf("%d%d",&... |
4b0bb2d3a6a2fb48889a1624c53cc18dbf52425e | 5d6e432783619902d1aa76e46e9596e2019f6c35 | /MainGame/OwlBoss.h | 60e60907f2607b27f406b0db2459106ce21a34cf | [] | no_license | abolshakov/Superposition | 55c322e1e13d100547bcf6647f87e386f94e146b | 687abf4e7a2ceb42518b7a5c63d633766353df9c | refs/heads/master | 2021-01-12T01:09:00.893742 | 2019-11-16T15:20:34 | 2019-11-16T15:20:34 | 78,336,283 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,111 | h | OwlBoss.h | #ifndef OWLBOSS_H
#define OWLBOSS_H
#include "DynamicObject.h"
#include "Helper.h"
using namespace sf;
class OwlBoss : public DynamicObject
{
private:
float timeForNewSprite = 0;
float jerkDistance = 0;
int animationLength;
int strikingSprite = 1;
int flapsBeforeJerkCount = 4;
bool wasHit = false;
public:
Owl... |
b7f46c4fb5d9cb5fa54ca1c5710894cf20a15bba | 738090558ba0d47a6851bd0411f16fc91252b35f | /01/ex02/ZombieEvent.hpp | 42998d2bb3ae7e03348f6e462c661aa7c1fadcf1 | [] | no_license | somethingthaticantdecide/CPP-Module | 30d8bd4da4b8b162a3b2120281f66199487e2b6f | 5446449dc35e5f1755f0e568d74c2e8a2e4e9dde | refs/heads/main | 2023-05-13T19:52:24.677052 | 2021-05-29T22:53:53 | 2021-05-29T22:53:53 | 372,082,575 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 319 | hpp | ZombieEvent.hpp | #ifndef ZOMBIE_EVENT_HPP
# define ZOMBIE_EVENT_HPP
# include "Zombie.hpp"
class ZombieEvent
{
private:
std::string _type;
std::string _getRandomName();
public:
ZombieEvent();
~ZombieEvent();
Zombie* newZombie(std::string zName);
void setZombieType(std::string zType);
void randomChump();
};
#endif |
9e1c0bc02218c0f92b21c4ebe632dbb8d4bd0e3b | cbf87541424058749d476e39e778fdd049d064fc | /roguelike42/rogue42/MessageWindow.cpp | 80da8acee955a2cd075e2eabb0c066336d58ebec | [] | no_license | zolphinus/Team42Workspace | 44746289b713c2d108c4640f18eb2e5efcd58cb7 | 82a6c451678b1deb54086e2ba81e8ba083b248cf | refs/heads/master | 2016-09-05T20:32:47.493263 | 2014-04-22T01:07:53 | 2014-04-22T01:07:53 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,536 | cpp | MessageWindow.cpp | #include "MessageWindow.h"
#include "curses.h"
MessageWindow::MessageWindow()
{
for(int arrayInitializer = 0; arrayInitializer<8; arrayInitializer++)
{
MessageArray[arrayInitializer] = "";
}
messageWindow = newwin(MESSAGE_WINDOW_HEIGHT,MESSAGE_WINDOW_WIDTH,17,0);
}
MessageWindow::~MessageWin... |
825db8f5abf88dd87f3b558ca90ece10bfe08964 | 1288b4c6add8cf0db94025bfccf3e80ffef8cbce | /AccountManager.h | 21c7a326d99596304ea0d226f77c7aecc47ba05b | [] | no_license | FrancescoCorazzi/EsercizioLaboratorio | c06d3ba912df8821ec047ad49a1b1885ee7174b6 | 8018c59ec99960b55fd530329044a6a4e0978548 | refs/heads/master | 2020-06-12T10:56:14.512783 | 2019-09-16T10:18:59 | 2019-09-16T10:18:59 | 194,277,361 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,421 | h | AccountManager.h | //
// Created by coraz on 28/06/19.
//
#ifndef ESLABORATORIO_ACCOUNTMANAGER_H
#define ESLABORATORIO_ACCOUNTMANAGER_H
#include <fstream>
#include <vector>
#include <experimental/filesystem>
#include "BankAccount.h"
using namespace std;
// Singleton
class AccountManager {
public:
static AccountManager* getInst... |
c17fdf66b8a1a2c28b916235eb7e770f3c053afe | 1c4c1fc58e589aa3f5c2b43cc78d283d02681360 | /tests/test_sat.cpp | 6648534d99be1763b031d10279c5c61453d427fa | [
"BSD-2-Clause"
] | permissive | liq07lzucn/easy-IP | 593412448b0393cdc433fede4d08aeec8e40ae3d | d57607333b9844a32723db5e1d748b9eeb4fb2a2 | refs/heads/master | 2021-09-22T10:06:18.036631 | 2018-09-07T17:18:00 | 2018-09-07T17:18:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,450 | cpp | test_sat.cpp | // Petter Strandmark 2013–2014.
#include <catch.hpp>
#include <easy-ip.h>
using namespace std;
#define REQUIRE_NUM_SOLUTIONS(ip, num) \
REQUIRE(ip.solve()); \
int num_solutions = 0; \
do { \
num_solutions++; \
} while (ip.next_solution()); \
REQUIRE(num_solutions == num);
auto create_soduku_IP(IP& ip, int n... |
d246743b04fa9c11eaab1757690b6d573b74daea | 3a2c5c8681765d81f30fd4e9ebe5508734b1ed5b | /DP最短路径多解法.cpp | 436aee0f8b6e8244a5a859ff9d5bc55dffc1b2e5 | [] | no_license | lvningyuan/pdlbox | c9949de50bb2d1cb8cb58316294fcc6031a999fb | cd7bfa317a1b5a43a1aa9a70e3b6c4f211dadffc | refs/heads/master | 2020-09-30T22:59:24.776722 | 2020-06-20T15:22:25 | 2020-06-20T15:22:25 | 227,394,200 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,977 | cpp | DP最短路径多解法.cpp | class Solution {
public:
int minimumTotal(vector<vector<int>>& triangle) {
/*
vector<int> dp(triangle.size()+1,0);//初始化为0
//为什么需要多一个数组空间,因为每次取两个路径长度比较并提取其中最小的。
//自底向上
for(int i=triangle.size()-1; i>=0; i--)
{
for(int j=0; j<triangle[i].size(); j++)
... |
6d7c83d49b312a0a866c3ecf597ab377a7109d64 | 203e602370f4673f65f3c3022355ff6634c268ac | /c/hdu/viewed/hdu1010深度优先搜索.cpp | 6eb4e6af98f04b97496cb02db3deba3bb58839ae | [
"Apache-2.0"
] | permissive | WeAreChampion/notes | 4942fbd5c238559eb318787adc27be72f848de44 | 6c0f726d1003e5083d9cf1b75ac6905dc1c19c07 | refs/heads/master | 2020-06-14T03:54:00.587873 | 2016-12-07T13:02:45 | 2016-12-07T13:02:45 | 75,520,188 | 2 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,527 | cpp | hdu1010深度优先搜索.cpp | #include<iostream>
using namespace std;
int sx, sy; // the start pos
int ex, ey; //the end pos
int n, m;
char map[10][10];//the map
int flag, step;//the work step and the flag about worker can go through successfully.
//the direction
int d[4][2]={
0, 1,
1, 0,
0, -1,
-1, 0};
/*
The dfs by pos including x... |
12968ecbd5ac18795efdc8cb1a9670ca5cb61bf8 | 9f1f8aa587a2d43668a2dc18debf1e69bb56ec5e | /测试/warehouse.cpp | daddd900fa81b07d4300c92d99efbf97b2b66c71 | [] | no_license | miku-web/secondgit | 9b6becce22b226ea82587cc073732de70c00b66e | 01a1aae7ae2699505f3e675064ab6924f8883be7 | refs/heads/master | 2023-02-10T06:54:36.071968 | 2021-01-05T01:50:21 | 2021-01-05T01:50:21 | 275,836,734 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,949 | cpp | warehouse.cpp | #define _CRT_SECURE_NO_WARNINGS
#include<iostream>
#include<cstdlib>
#include<stdio.h>
#include<cstring>
#include<cmath>
#include<stdlib.h>
#define error 0
#define ok 1
#define Max_Size 100
using namespace std;
typedef int Status;
typedef struct Warehourse {
char number[Max_Size];//货物编号
char name[Max_... |
7f7ddc381ef78a539c6ebd6db9d398794e21d154 | 639a6c8ff4d098a625b5904f260eec19764a598f | /Sources/AddOn/AddOnMain.cpp | 439b0ea5247f81883e4ba9dae8fffb9f863e06c5 | [
"MIT"
] | permissive | Bishwanath-Dey-Nayan/ARCHICAD-ADD-ONS-Manager | 27c8fa47d2367dca428e8e3bd80b34d0ee889ab2 | 8960a43ead0aa0977d675bd6155e6c9bdd43683b | refs/heads/master | 2023-04-13T08:07:06.555025 | 2021-04-27T08:12:52 | 2021-04-27T08:12:52 | 355,536,448 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,384 | cpp | AddOnMain.cpp | #include "APIEnvir.h"
#include "ACAPinc.h"
#include "ResourceIds.hpp"
#include "DGModule.hpp"
#include "StringConversion.hpp"
#include <iostream>
#include "Controls.hpp"
#include "TemplateDialog.hpp"
using namespace std;
static const GSResID AddOnInfoID = ID_ADDON_INFO;
static const Int32 AddOnNameID = 1;
static con... |
74bf7130aef20f822497cae3183aba1a1125bf55 | ff80072eacc2cc9dc849380b793cab0233d33439 | /oarphkit/ok/SV/SVCommon.hpp | 2b3647e9de88b3ee31a6ec9027cf95db04159ad8 | [
"Apache-2.0"
] | permissive | pwais/oarphkit | 3477d71420c274cb56e22bf7ff08450a050ae7b4 | e799e7904d5b374cb6b58cd06a42d05506e83d94 | refs/heads/master | 2021-01-01T05:59:31.179043 | 2015-09-09T08:17:18 | 2015-09-09T08:17:18 | 39,921,203 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,586 | hpp | SVCommon.hpp | /*
* Copyright 2015 Maintainers of OarphKit
*
* 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 o... |
6829645d979c6c2f92b64b5051cee4d244bbb12c | 18b1350719a35f258eef481d2c2a538dfaed4811 | /FCTRL.cpp | 385f8f5d88cb5a6c46b637015dad60d321f7a16a | [] | no_license | harshitt07/cps | 079d9d712a64747dd1d3635e79524e70e65f15f8 | f034ebd952200ac08dbaf0bca45eeb8054003c10 | refs/heads/master | 2021-09-03T07:02:56.290382 | 2018-01-06T17:38:58 | 2018-01-06T17:38:58 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 205 | cpp | FCTRL.cpp | #include<iostream>
using namespace std;
int main()
{
long int a;
int t;
cin>>t;
for(int i=0;i<t;i++)
{
int z=0;
cin>>a;
while(a!=0)
{
z=z+a/5;
a=a/5;
}
cout<<z<<"\n";
}
}
|
7a785a21a59a5213c3767b8dfdfa9e63d166bf5e | 80520164b924d31c74594aa0815bb9bdd487637a | /include/hypro/algorithms/reachability/handlers/resetHandlers/rectangularResetHandler.h | 9588be95a8b6c917e981e5f326068acc248ab4ce | [
"MIT"
] | permissive | hypro/hypro | da4efececa3e8390c4c4e8d44e908cd781bf6704 | 9333eb4d9319f0462b33802c5de76f6ad6c0cbe2 | refs/heads/master | 2023-07-08T01:24:37.025069 | 2022-01-04T07:54:06 | 2022-01-04T07:54:06 | 69,588,580 | 28 | 13 | NOASSERTION | 2023-09-07T07:30:00 | 2016-09-29T16:58:10 | C++ | UTF-8 | C++ | false | false | 1,051 | h | rectangularResetHandler.h | #pragma once
#include "../IHandler.h"
namespace hypro {
template <typename State>
class rectangularResetHandler : public IResetHandler {
using Number = typename State::NumberType;
using TransitionStatesMap = typename std::map<Transition<Number>*, std::vector<State>>;
using TransitionContainmentMap = std::map<const ... |
7a13b89e8b50a304f3890442ed050302b47f6dd7 | 0da268a0db15337d31674426b25f8b80fd0a3235 | /nginx/_include/ngx_cpp_log_message.h | efe226b780f22a573af4f3eadea6dd94fb3e84ad | [] | no_license | 847212939/server | 9b4d1e81198b00ff1e84a09d96d748b88b4be89e | 40532bbff894d703b89047d12a71efa0a5a6cb0e | refs/heads/master | 2020-05-04T17:27:29.328298 | 2019-05-22T02:58:35 | 2019-05-22T02:58:35 | 179,311,663 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,180 | h | ngx_cpp_log_message.h | #pragma once
#include "ngx_cpp_global.h"
class CNgx_cpp_log_message
{
public:
void ngx_log_init();
void ngx_log_error_core(int level, int err, const char *fmt, ...);
void ngx_log_stderr(int err, const char *fmt, ...);
u_char * ngx_snprintf(u_char *buf, size_t max, const char *fmt, ...);
publ... |
c0ef4ec3041ecce4b962a0bd32558b09b8171134 | cdfb5c3e3049aaf3f210e679364f34e38932d736 | /Source/main.cpp | 9ba60c9854491232c415f1ddbf587e37ad05d1ce | [] | no_license | adjsky/terraria_clone | 37ea886abfe18df12f19c1caa4476f8efa180e49 | 9541726d2a4b429d9f8d8a37137e5999ecc51208 | refs/heads/master | 2023-03-22T12:45:40.760567 | 2021-03-24T05:20:27 | 2021-03-24T05:20:27 | 324,908,519 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 134 | cpp | main.cpp | #include "Core/Engine.h"
#include "Game/Game.h"
int main()
{
Engine::init();
Game game{ };
game.start();
return 0;
}
|
7a23c5b31e62380a13d3a1a3d80bc40623061119 | 2a8df53e849bd9033400d748ade0c714ae575b71 | /OOP/latihan 2.cpp | c93de22022fbca6f8f1da293c6955a7bde8c195c | [] | no_license | tarishahamzah/Tarisha-File | c682e29a91f2af1901b6730cea6441fbc85dedb6 | ffcaffe2fc8dbaca2489f0921fdc3b955290c617 | refs/heads/main | 2022-12-29T09:43:33.091904 | 2020-10-19T08:02:06 | 2020-10-19T08:02:06 | 305,303,155 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,199 | cpp | latihan 2.cpp | #include <iostream>
#include <conio.h>
#include <string.h>
using namespace std;
class ActionCam {
char Nama[25];
char Series[25];
char Sensor[25];
float focal;
int harga;
int ongkir;
int Total;
public :
void setActionCam(char *Nama, char *Series, char *Sensor, float focal, int ha... |
817244035407f1978c20ad598e1d0c1c4ec33c1d | 2008b223bcaeffc72abadf605f0ce8ea8704e136 | /assignments/assignment-01-albertotezza/shortest_string.cpp | 803538705b206524debb5fda961c00a858c83eed | [] | no_license | albertotezza/embedded-systems-programming-aa-2019-20 | 0f74e17725f0b457db4510c8a2ec82da86ddc296 | 60f61e656313b9ee2b5416bc6e302092415f1ad6 | refs/heads/master | 2023-07-13T08:02:57.178879 | 2023-07-02T08:07:45 | 2023-07-02T08:07:45 | 211,164,650 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 464 | cpp | shortest_string.cpp | #include <iostream>
#include <vector>
#include <string>
using std::cout;
using std::endl;
using std::vector;
using std::string;
#include "functions.h"
string shortest_string(const vector<string>&v){
size_t dim{10};
string box_min;
vector<string>::const_iterator pos;
for(pos=v.begin(); pos!=v.end(); ... |
5665d003d8254cc1ea4f49e112d2db7056fe1859 | f7006c9f2ae60e94b4ac2c5a13ce62329dd3db71 | /partialmodel/pmvolumetric.cpp | 515b46b9c0c1a7268c5bc3a72a12a881d98486c8 | [
"BSD-3-Clause"
] | permissive | CHLMYR/vpl | 9d61e310371346be29bbda95b6c5ad427db5570b | 1a6e88353395ca0e43a0c4d0d6b38f7c7e2925f7 | refs/heads/master | 2023-03-15T16:24:58.187700 | 2018-08-17T14:26:14 | 2018-08-17T14:26:14 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,490 | cpp | pmvolumetric.cpp | /*
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) 2012 <copyright holder> <email>
This program 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 ve... |
8a6bb6ed83711aa4295b3d2b5ebe0a05e2aad752 | f2d99456cab86e8e5ff4d7c42f2f03b4d2fb34d8 | /src/reverse/RTTIHelper.cpp | 6c4444463b2aaa4ff07beff1a03faf29cf57dd46 | [
"BSD-3-Clause",
"LicenseRef-scancode-free-unknown",
"GPL-1.0-or-later",
"LicenseRef-scancode-unknown-license-reference",
"Unlicense",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"MIT",
"OFL-1.1"
] | permissive | WopsS/PerformanceOverhaulCyberpunk | 7e97a38002d0bae5d7592139dc85f4f04a6518a0 | 8d1ceebbae13e7067d0a95abf1ec07d5dde6a65b | refs/heads/master | 2023-04-27T15:58:32.883915 | 2023-04-17T05:07:26 | 2023-04-17T05:07:26 | 323,208,527 | 0 | 1 | MIT | 2023-04-20T18:04:51 | 2020-12-21T02:16:02 | C | UTF-8 | C++ | false | false | 34,801 | cpp | RTTIHelper.cpp | #include <stdafx.h>
#include "RTTIHelper.h"
#include "ClassReference.h"
#include "StrongReference.h"
#include "WeakReference.h"
#include <common/ScopeGuard.h>
#include <scripting/Scripting.h>
#include <Utils.h>
namespace
{
constexpr bool s_cEnableOverloads = true;
constexpr bool s_cLogAllOverloadVariants = true;
co... |
b9df95f06503e34d2005214054aecdd6d750e9fc | 742182b23044c91df9a3d99652697152fc13f91d | /Div1/SRM522Div1/Easy.cpp | b005635fb6d53e97c21e216939d085720831c32d | [] | no_license | iseki-masaya/topcoder | 15e052bff8043f60a15969acc723e2550eae262c | c85ba323476b03abbc22a758e5724f15796ee62b | refs/heads/master | 2016-09-11T02:00:10.773000 | 2015-04-26T02:41:05 | 2015-04-26T02:41:05 | 9,335,477 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 847 | cpp | Easy.cpp | #include <vector>
#include <string>
#include <iostream>
#include <fstream>
#include <sstream>
#include <list>
#include <algorithm>
#include <sstream>
#include <set>
#include <cmath>
#include <map>
#include <stack>
#include <queue>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <numeric>
#include <bits... |
774318e6e24850bb3a80289efd849c7ddfb33820 | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/CMake/CMake-gumtree/Kitware_CMake_repos_basic_block_block_2524.cpp | 2c3cc7d366ab3063be97ca45291fccd84943d1f8 | [] | no_license | niuxu18/logTracker-old | 97543445ea7e414ed40bdc681239365d33418975 | f2b060f13a0295387fe02187543db124916eb446 | refs/heads/master | 2021-09-13T21:39:37.686481 | 2017-12-11T03:36:34 | 2017-12-11T03:36:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 27 | cpp | Kitware_CMake_repos_basic_block_block_2524.cpp | {
runaway[i] = '.';
} |
059f573ec6b729dfe0b56dd47270be2aca42fbe4 | 1806eaae69f944683e308348714efc4c470bb95c | /kex2/turok/game/canvas.cpp | 8d7bb3d1efe35ce35e88c3fba6cfe8f9a4dcab7f | [] | no_license | ayaz345/TurokEX | 09b929f69918ffef9c45d6142fe7888e96d409d9 | 90589b4bd3c35e79ea42572e4c89dc335c5cfbfe | refs/heads/master | 2023-07-10T20:56:47.643435 | 2014-06-20T01:59:44 | 2014-06-20T01:59:44 | 650,764,618 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 22,673 | cpp | canvas.cpp | // Emacs style mode select -*- C++ -*-
//-----------------------------------------------------------------------------
//
// Copyright(C) 2013 Samuel Villarreal
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Fr... |
8da246edcd26bf74881d815b7ce18100183556f9 | f0d4f6f5b66e3c911b6d0cd763f4e84ffd95a417 | /Lab3(Battleship)/ConsolePlayer.cpp | 0b8bfed739400d97cc2323a3fab2b660139a3da0 | [] | no_license | Nikssssss/Labs_1 | 52fa061f7e15cbaad5ffb135a9ea39707bc3d50a | ec703efdc9f64916ee4286f5a3e925d073f45950 | refs/heads/master | 2021-07-23T08:10:10.558296 | 2020-08-17T16:31:32 | 2020-08-17T16:31:32 | 207,206,038 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,411 | cpp | ConsolePlayer.cpp | #include "pch.h"
#include "ConsolePlayer.h"
ConsolePlayer::ConsolePlayer() {
}
bool ConsolePlayer::getWinStatus() {
return isWinner;
}
char** ConsolePlayer::getMyBoard() {
return myBoard.getBoard();
}
char** ConsolePlayer::getEnemyBoard() {
return enemyBoard.getBoard();
}
std::vector<Ship... |
07202c5393950050c6ab26410243f899c828ba9d | 8ddfcc042544c499474653e2938be16c32ba7a15 | /BasicRenderEngine/include/GLProgramPipeline.h | 9bce790f8f071184011d671640055689ffde27fe | [
"MIT"
] | permissive | chbaker0/gl-engine | b167bdeb53841e8fa26a9a029a0aa5e944fd6031 | 7721c90d6bb552b99f01a57d30bafa772937cdb7 | refs/heads/master | 2021-01-02T08:19:40.552718 | 2015-06-21T21:38:57 | 2015-06-21T21:38:57 | 31,871,619 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 638 | h | GLProgramPipeline.h | /*
* GLProgramPipeline.h
*
* Created on: Mar 9, 2015
* Author: Collin
*/
#ifndef GL_PROGRAM_PIPELINE_INCLUDED
#define GL_PROGRAM_PIPELINE_INCLUDED
#include <GL/glew.h>
#include "GLExecutable.h"
#include "GLShaderProgram.h"
class GLProgramPipeline : public GLExecutable
{
protected:
GLuint handle;
public... |
2435af8f6ef16673642c06289d4e1aeaf09e1539 | d396697011aa127c517372383bb56675ef6b4318 | /practiceCode/practiceCode/B467.cpp | 3eb8f95aa45eb70034b9541f347e7b12559f937d | [] | no_license | Quach2502/hello-world | f7afa3edff1bfb5db5eb5dd66474f4ad5000f22b | 9932368ac24e907b138d3f5e744a28dfc5874bd3 | refs/heads/master | 2021-01-09T20:47:02.399667 | 2017-08-30T07:42:26 | 2017-08-30T07:42:26 | 63,652,315 | 0 | 0 | null | 2016-07-19T02:21:41 | 2016-07-19T02:17:30 | null | UTF-8 | C++ | false | false | 1,038 | cpp | B467.cpp | //#include <iostream>
//#include <vector>
//#include <algorithm>
//#include <string>
//std::vector<int> convert(int n, int type)
//{
// std::vector<int> result;
// while (n > 0)
// {
// result.push_back(n % 2);
// n = n / 2;
// }
// for (int i = result.size(); i < type; i++)
// {
// result.push_back(0);
// }
// retu... |
4eb21ae30b994efa23b3c5c18149e4cd1ce74e6b | bac3a059bff226b394d56aeb1c4c29fd1010eda9 | /test-project-new/include/particle.h | c0a646f697864895c4b916dac926fb5d6ab1ccca | [] | no_license | tectronics/lddtc | a91ccb984b37900f50caa9f373053075381a3bf1 | 6ec598c870d768a1c245d4b151d0fa0cdddcc2f3 | refs/heads/master | 2018-01-11T15:01:37.337823 | 2013-04-22T23:56:22 | 2013-04-22T23:56:22 | 47,875,725 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,034 | h | particle.h | #ifndef PARTICLE_H
#define PARTICLE_H
#include "CVector3d.h"
class particle{
public:
particle();
~particle();
void particleInit(double, double, double, double, double, double, double,
double, double, double, double, double... |
d01f60120d2aa5bf6512716d80dac7cee356f3c2 | 1e021770363d689b932e03b50a67963ee5989d1b | /UrbanDictionary/DictionaryDirectory/Word.cpp | 797a0a0d554a8ed32284d8e2961b075beb91fd21 | [] | no_license | tmorriso/Computer_Science | 722b27d98abd5b97de585fcc5f524b7a3bb992cc | 83a211985b5134552c175ded7f5410e9828f9222 | refs/heads/master | 2021-01-19T04:32:56.083324 | 2016-07-14T04:33:08 | 2016-07-14T04:33:08 | 63,301,807 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 834 | cpp | Word.cpp | // Word.cpp
// Thomas Morrison
// November 29, 2015
// Project 2
//--------------------------------------
// Purpose: Word Class to keep track of
// words, definitions, and
// sentences.
//--------------------------------------
#include <iostream>
#include <string>
#include "... |
58fcf618cb1123692e47b6f19e4e62a212f402ec | c9cd76e3f53916d7089bd177b5959d0bbbd23c4d | /Matrix.h | 41b0426d6f7fd82283be5febae7dfbf3edf3d6d5 | [] | no_license | Pikecillo/boiling-simulation | db66250026957ad5d971dfea7d76d98f01a7671a | 2ab5e0af4d64a736f23d67d0d0f8c882f4727ddc | refs/heads/master | 2023-07-06T14:21:05.759603 | 2023-06-23T22:10:07 | 2023-06-23T22:10:07 | 152,322,803 | 1 | 2 | null | 2023-06-23T22:10:09 | 2018-10-09T21:18:39 | C++ | UTF-8 | C++ | false | false | 588 | h | Matrix.h | #pragma once
#include <vector>
template <typename T> class Matrix {
public:
Matrix(size_t rows, size_t cols)
: m_cols(cols), m_rows(rows), m_elements(rows * cols, static_cast<T>(0)) {
}
size_t cols() const { return m_cols; }
size_t rows() const { return m_rows; }
float at(size_t i, size_t j) cons... |
20cf9daaae168208e9e2d45a1a6b1e0d004a4cd4 | 3585f4e76b655c603e230137cbc8c4290d916cd0 | /src/ui/scene/Cell.cpp | 9ca7c3d545f731a4180c9c9c0cfd1f7f2b748e57 | [] | no_license | Firely-Pasha/LangtonsAnt | 77db6ce105bba44aa42f24b87955c5260064f25f | bff4570c55012bb98dc136c885cdd6454922a98e | refs/heads/master | 2020-04-09T05:16:12.796866 | 2018-12-07T13:51:19 | 2018-12-07T13:51:19 | 160,057,716 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,106 | cpp | Cell.cpp | #include <utility>
// Created by firely-pasha on 04.12.18.
#include <GL/gl.h>
#include "Cell.h"
#include "Scene.h"
Cell::Cell(QPoint position, int typeIndex) : SceneObject(position)
{
Cell::typeIndex = typeIndex;
Cell::color = Scene::cellTypes[typeIndex].getColor();
}
void Cell::update()
{
}
void Cell::r... |
a85785d966706fd2ddb108d08ce32d5aab2a8118 | a5e00504919bb338910de4cc5c3c3c4afb71e8c6 | /UVa/Code/12650 - Dangerous Dive.cpp | abbc0e9050fb416a0d9207bccb0c76737c370bf0 | [] | no_license | samuel21119/Cpp | f55333a6e012e020dd45b54d8fff59a339d0f808 | 056a6570bd28dd795f66f31c82537c79eb57cc72 | refs/heads/master | 2023-01-05T15:14:55.357393 | 2020-10-20T23:32:20 | 2020-10-20T23:32:20 | 168,485,083 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 796 | cpp | 12650 - Dangerous Dive.cpp | /*************************************************************************
> File Name: 12650 - Dangerous Dive.cpp
> Author: Samuel
> Mail: enminghuang21119@gmail.com
> Created Time: Sat Dec 30 19:37:23 2017
*************************************************************************/
#include <iostream>
#include... |
4dd9b777b2604ec0f9c929cf5ae20238b3cc5650 | ab65075a93126360824f034a78da57e9dc64bad1 | /deps/spiel/label.h | c7d7be1e5a698004abd77b0d8c71683ae7534c70 | [
"MIT"
] | permissive | xmil9/towers | 6d79ee433e1e177a6a095e16d2a4bdbd973d29fc | 06c9c07c1ec6cb5f3493c1de0ffa8930b6add5f6 | refs/heads/master | 2023-03-12T06:09:43.456772 | 2021-02-25T01:03:41 | 2021-02-25T01:03:41 | 303,491,375 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 986 | h | label.h | //
// Jan-2021, Michael Lindner
// MIT license
//
#pragma once
#include "color.h"
#include "coords.h"
#include <functional>
#include <string>
namespace sp
{
class Renderer2;
}
namespace sp
{
///////////////////
class Label
{
public:
using GetTextFn = std::function<std::string()>;
public:
Label(float textSc... |
14f10cf85fae707900e2212d58648315d28ce444 | 7ba1a08aca63357e47abc428756781d30dc8de24 | /week 3/lab3_part2/600/k | a86b36a39050e1a8fea8e51d4ab10b1acd460891 | [] | no_license | MrSecrets/Computational-Fluid-Dynamics | 208b1d3dcd9018a819cc886b4601c661b19203a3 | 15fc7bea495a61a885511618bd493df21facd448 | refs/heads/main | 2023-01-07T20:29:44.212648 | 2020-11-12T09:33:18 | 2020-11-12T09:33:18 | 310,844,803 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 62,252 | k | /*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 8
\\/ M anipulation |
\*-------... | |
ea91f78c0bc671b93a0c02da519ede52acb7ac3c | 4584c47495d5c8928a36dc70a2a23adbbcc16bf0 | /LGP1337.cpp | 76fbc30e58da62edee9141eb82c613f1fa0fd871 | [
"MIT"
] | permissive | Origami404/OI_Code | d59108d4be8cf02e288992e56f1a502deb6d2b42 | 9638ec6fa409dc8e243eaef9aa287c20c332bbe5 | refs/heads/master | 2020-06-29T09:04:48.931194 | 2019-08-04T13:26:14 | 2019-08-04T13:26:14 | 200,494,467 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,115 | cpp | LGP1337.cpp | #include <cstdio>
#include <cstdlib>
#include <cmath>
#include <ctime>
#define MAXN 1007
using namespace std;
int hx[MAXN], hy[MAXN], w[MAXN], n;
double drand() {
return (rand()*2 - RAND_MAX);
}
double stat(double x, double y) {
double E = 0.0;
for (int i = 1; i <= n; i++) {
double dx =... |
09652083693775c9b9990c159b51ef2733bb750b | 6e3b59d15607630869f518aee24c762d5dd71d06 | /CODES/D_Zero_Quantity_Maximization.cpp | 99c6c5dc1c332cd022252b664d4bc2db261f3b9a | [] | no_license | Aman-droid/CP_Essentials | c74ffce2c4acc9fa6b0ebc409f9f6e9640f92c91 | 40758de037a4b380bd7d921cd3cd7c4f8fc86be1 | refs/heads/master | 2023-06-05T13:56:29.053495 | 2021-06-29T18:13:14 | 2021-06-29T18:13:14 | 381,141,371 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,281 | cpp | D_Zero_Quantity_Maximization.cpp | #include<bits/stdc++.h>
#define ll long long
#define endl '\n'
#define vll vector< ll >
#define rep(i,a,b) for(ll i=a;i<=b;i++)
#define pii pair<ll,ll>
#define SZ(x) ((ll)x.size())
#define FIO ios_base::sync_with_stdio(0);cin.tie(NULL);cout.tie(NULL)
#define watch(x) cout << (#x) << " is " << (x) << "\n"
#define pb ... |
b42b6c66fd9bc303b327888487ae011516253938 | 7e4e6e1e6066cabb7aebf6a90ce35a443e23c3dc | /notepad/Notepad.cpp | 3f2ce70468323707f3f3e4994d2bd438bdc8efa8 | [] | no_license | mlisgood/Start | 958e68b3c5efef6f1d197a756ed7779e127049bf | 66189fdb60f7e3d1fce309e879d722c8d44362e5 | refs/heads/master | 2020-06-29T16:37:52.485329 | 2019-08-05T03:26:57 | 2019-08-05T03:26:57 | 199,648,866 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 69,612 | cpp | Notepad.cpp | #include "define.h"
namespace rem
{
//全局变量定义
extern int find_dialog_mutex = 1;//只允许创建1个查找窗口。注意使用全局变量时,不管是声明还是定义都不需要在头文件中,并且需要用extern。全局变量只能定义1次,也就是赋初值1次,但需要用到其的文件中均需声明。
//使用标准命名空间
using std::string;
using std::ifstream;
using std::ofstream;
using std::fstream;
using std::ios_base;
//构造与析构函数
Notepad::Notep... |
a6378231b91dd805c4ae559019267e5d6e3a6311 | 8e1022e1323c461d1a787d5df74082954dbf82ea | /provides/include/lax_v1/lazify.hpp | 6f4670c4314c01b78d41d7ff878a68d2f1483251 | [
"MIT"
] | permissive | per-framework/lax.cpp | e000f2dfc0b1c65fca29ef430f04b9813be6a87f | 2acdb9adf19441fcd159238c63fba24865234ce1 | refs/heads/v1 | 2021-07-01T04:49:27.930355 | 2020-10-08T12:32:42 | 2020-10-08T13:00:42 | 180,317,719 | 0 | 0 | MIT | 2019-04-22T20:06:57 | 2019-04-09T08:11:47 | C++ | UTF-8 | C++ | false | false | 69 | hpp | lazify.hpp | #pragma once
#include "lax_v1/type.hpp"
#include "lax_v1/value.hpp"
|
2a11b1fd92327387396cb04d27277a2db43b977a | 5a6ccde5f37cc86b6fc0812b2bf40f42eab23906 | /B-set/66B.Petya and Countryside.cpp | ecd5cc6cf13178e7677bd2dd8e3431f6a72f30a7 | [] | no_license | Waqar-107/Codeforces | 23f2b1edffb85f6f020107f03e09a455d3e6e792 | f0d2f25aa6a09c06083b82c39cdf3288ec2eecba | refs/heads/master | 2023-03-09T07:55:46.583363 | 2023-03-04T09:57:44 | 2023-03-04T09:57:44 | 82,915,896 | 196 | 138 | null | 2023-02-11T22:06:20 | 2017-02-23T10:29:34 | C++ | UTF-8 | C++ | false | false | 898 | cpp | 66B.Petya and Countryside.cpp | /*****from dust i have come, dust i will be*****/
#include<bits/stdc++.h>
typedef long long int ll;
#define pp pair<ll,ll>
#define dbg printf("in\n");
#define inf 1000000000000
#define fr(a) for(i=0;i<n;i++)
#define mm 1000000007
using namespace std;
int main()
{
//freopen("in.txt","r",stdin);
int i,j,k;
... |
c0f4fa3840470333e70658265bede967f1433d6d | 730d3b8067feb317c053f05d9d77780c8baa81e8 | /src/tracklayer.hpp | 85037cf9398540a507ad240946594978f63547f6 | [
"MIT"
] | permissive | pekdon/florb | c5fea3fbe0ff64b9ae949bbb225c317a63d18db6 | 85d2be7d851f83db8a289fd2018832aec295d526 | refs/heads/master | 2022-12-22T12:09:32.027989 | 2019-07-16T16:54:55 | 2019-07-16T16:54:55 | 291,637,368 | 2 | 0 | MIT | 2020-08-31T06:48:11 | 2020-08-31T06:48:10 | null | UTF-8 | C++ | false | false | 3,354 | hpp | tracklayer.hpp | #ifndef TRACKLAYER_HPP
#define TRACKLAYER_HPP
#include <string>
#include <iostream>
#include <tinyxml2.h>
#include <vector>
#include <ctime>
#include <layer.hpp>
#include "viewport.hpp"
#include "point.hpp"
namespace florb {
class tracklayer : public florb::layer
{
public:
tracklayer(cons... |
8a125bddde2066b652b6458a41ed4871f272728a | e1d613a4fcfcc3fa5b8704ae222d8c23b9a029c9 | /codes/complete_binary_heap.cpp | b1c1413e9422880fcfbf35978524c35f5066b716 | [] | no_license | greenpepper123/procon | 5e7b616a0cf3b774b11522480a1b97884114dffd | 084607c0a630f4e9791c2994446aa249dd4fa39e | refs/heads/master | 2022-12-17T02:17:54.535943 | 2020-08-11T21:06:30 | 2020-08-11T21:06:30 | 279,042,818 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 754 | cpp | complete_binary_heap.cpp | #include <iostream>
#include <cmath>
#include <vector>
#include <string>
#include <algorithm>
void print(int id, std::vector<int> tree) {
std::cout << "node " << id << ": key = " << tree[id-1] << ", ";
if (id/2 > 0) {
std::cout << "parent key = " << tree[id/2-1] << ", ";
}
if (2*id <= tree.size... |
a1c86d72e901594f2fb0054199d227111794e0da | c1cfc72f3306067a63eceaeddd935c1032685c6d | /ServerClass.h | 1e81ab1d76f3ec9c605d8027b6c863b3a6321c86 | [] | no_license | Zephyrum-Alsend/Network_Chatroom | c4dfbfcdb90531600cb3efb336b0381f18144f4c | 682bce8618245799c4d281909f0c02a387a3bf74 | refs/heads/master | 2021-05-06T19:43:18.998644 | 2017-10-31T00:52:09 | 2017-10-31T00:52:09 | 112,180,299 | 0 | 0 | null | 2017-11-27T10:11:01 | 2017-11-27T10:11:00 | null | UTF-8 | C++ | false | false | 1,665 | h | ServerClass.h | #pragma once
#include "stdafx.h"
struct client;
//maximum clients we will serve
const int MAX_CLIENTS = 64;
//class ServerClass
//Handles all server functions, including password checking, etc.
class ServerClass
{
public:
//ServerClass();
//getter setter for whitelistpath
std::string GetWhi... |
2b90dc30994991e6503920e26b89f4fc74a36bb5 | 24b6c192d1b5f516717462d6bb16bfe6b3d05cdc | /plugin-test/plugins/Plugin2.cpp | c02cc6ed07c64e6bc12f3a797909071562b74551 | [] | no_license | TrueJournals/cpp-experiments | 512dc391669533782387361fc9df0a96674e8b75 | d3250700f52f21cf12d541778f65e517e7782c4a | refs/heads/master | 2021-01-22T01:05:45.815200 | 2015-10-03T19:07:28 | 2015-10-03T19:07:28 | 31,133,057 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 433 | cpp | Plugin2.cpp | #include "../interface.hpp"
#include "../TestPlugin.hpp"
class Plugin2 : public TestPlugin {
public:
using TestPlugin::TestPlugin;
virtual ~Plugin2() = default;
virtual std::string get_name() override { return "Plugin2"; }
virtual unsigned int calc(unsigned int input) override { return input / 2; }
};... |
e071125e2d3b2f0530090a205d8d53b6083ebbb9 | 4baa62e54b5ad336d989cb0554ae422c591f73af | /1200/1293.cpp | 1c3fe8a9e9cafeee719afce8500a850f9c59b8c1 | [] | no_license | shikgom2/Codeup | 219283fc487c2da781ba562bda4fcba40cfe7c46 | 111243633fbec7116e52e609b01415d6d2cbba99 | refs/heads/master | 2020-06-13T06:56:56.586964 | 2019-07-09T07:50:19 | 2019-07-09T07:50:19 | 194,578,627 | 7 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 322 | cpp | 1293.cpp | #include <stdio.h>
int main()
{
int n, i, a;
int max, min;
scanf("%d", &n);
for(i=1; i<=n; i++){
scanf("%d", &a);
if(i==1){
max=a;
min=a;
}
if(a>=max) max=a;
if(a<=min) min=a;
}
printf("%d %d", max, min);
return 0;
}... |
e1b4cbd4434c8b93e40d309f4a7ef3c0fe84715c | cb643d82dbc1c38a6dead34efb898d052a126716 | /1302_DeepestLeavesSum.cpp | 534b102dca603e236e80300845ffceb45ddffad9 | [] | no_license | penthaapatel/LeetCodeSolutions | d72e3f44a7787bc5009a41b9f1814cf5c189995e | ceaee9d38f58c47dd489d175d9aa07a835667860 | refs/heads/master | 2021-06-27T02:14:48.075661 | 2021-04-04T08:30:56 | 2021-04-04T08:30:56 | 207,657,736 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,098 | cpp | 1302_DeepestLeavesSum.cpp | // 1302. Deepest Leaves Sum - https://leetcode.com/problems/deepest-leaves-sum/
/**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode() : val(0), left(nullptr), right(nullptr) {}
* TreeNode(int x) : val(x), left(nullptr), righ... |
c76f6afd7b553c8f51efd28155e83c9a1f3eda3b | a85b9f1b1534c9658058d38ae4ef6451f66fda02 | /Sets/Sets/main.cpp | 32ce740e36a6eea4a3ff621e3ac2ba181e4c19b6 | [] | no_license | erik1o6/Cplusplus | 43e26b47ea1eaeab9c1b115fa47e8cb05e4ebc22 | dbfbd2d954306665e2d0e1ef611502e9787d1c5a | refs/heads/master | 2016-09-02T04:59:03.966350 | 2013-01-25T20:47:00 | 2013-01-25T20:47:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 140 | cpp | main.cpp | //main.cpp
//Written by: Erik Arfvidson
#include"Set.h"
using namespace std;
void main()
{
insertStrings();
system("pause");
} |
50284ac75233918ded165b976cbd7a0e7cce23d8 | ac645d07f5540e59f9854c0c2dfefaeb313680bc | /src/Hummingbird Engine/Scene Manager/Attributes/Updateable/updateable.h | c93a653f48ec754b2dd9b6aedaff1f0767e0bb93 | [] | no_license | brayanraya/HummingbirdEngine | a7785c3a5a642c43592a96f58cf2090c774b59e4 | 016e8b2c15fd27e88f2f665cc3d8e2df39b0a422 | refs/heads/master | 2020-03-17T09:16:49.341340 | 2018-05-15T05:55:21 | 2018-05-15T05:55:21 | 133,463,901 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,220 | h | updateable.h | #ifndef _updateable
#define _updateable
#include "../../Game Objects/gameObjects.h"
#include "../Shared Enum/regestrationState.h"
#include "../updateable/updateableManager.h"
//------------------------------------
// Forward Declarations
//------------------------------------
class updateableRegistratonCommand;
class... |
f6cc6cb5c38fbdfe4187b59aa00bae0df05d0629 | 233a7040061c47bc4624c0bebe4b53d585a6db15 | /src/EmpiricalDistribution.cxx | 725adbf166af63ebd01c20958cbd8dad5677ebb0 | [
"MIT"
] | permissive | chiumichael/EJD | 97a12773a03098fbcdc69dc0a0bca51f5112e4d4 | fa7e5f6854c56da0167e6d2935d8738121a0a22e | refs/heads/master | 2021-06-24T11:28:06.413769 | 2020-10-14T19:25:08 | 2020-10-14T19:25:08 | 170,946,431 | 0 | 1 | MIT | 2020-01-09T22:59:42 | 2019-02-16T00:38:40 | C++ | UTF-8 | C++ | false | false | 4,853 | cxx | EmpiricalDistribution.cxx | /*
This file is part of EJD.
Copyright © 2020
Michael Chiu <chiu@cs.toronto.edu>
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 w... |
18058aee33c7c2fc374b2b3f2b4cd136e17dc244 | 4045e2a8274c067f7b99fbe5a690cd7f7042aba1 | /gctp/graphictest/graphictest.cpp | 5f27e8027697de7159599789f8d5ae5265fd5cfe | [
"BSD-3-Clause"
] | permissive | Emulyator/gamecatapult | 78b48efdae3e13e20eb3176c104e7432161362e0 | d937e2a94d7156f040d34609e554991dc3a1cc47 | refs/heads/master | 2016-09-05T19:32:35.028735 | 2014-03-22T22:44:47 | 2014-03-22T22:44:47 | 41,599,252 | 1 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 10,013 | cpp | graphictest.cpp | /**@file
* グラフィック機能のテスト
*
* @author SAM (T&GG, Org.)<sowwa_NO_SPAM_THANKS@water.sannet.ne.jp>
* @date 2004/01/29 16:56:21
* Copyright (C) 2001,2002,2003,2004 SAM (T&GG, Org.). All rights reserved.
*/
#include "stdafx.h"
#include <gctp/dbgout.hpp>
#include <gctp/graphic.hpp>
#include <gctp/graphic/dx/... |
3f1ce76ebe346a2ec56072cfa074ffac34ed57d3 | 7ebae5ec0378642a1d2c181184460e76c73debbd | /USACO/hopscotchb/hopscotchb/hopscotchb.cpp | 3eb78f705dab35b6e60eafe80a4f0d85f304f755 | [] | no_license | tonyli00000/Competition-Code | a4352b6b6835819a0f19f7f5cc67e46d2a200906 | 7f5767e3cb997fd15ae6f72145bcb8394f50975f | refs/heads/master | 2020-06-17T23:04:10.367762 | 2019-12-28T22:08:25 | 2019-12-28T22:08:25 | 196,091,038 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 791 | cpp | hopscotchb.cpp | #include <iostream>
#include <string>
#include <sstream>
#include <iomanip>
#include <math.h>
#include <queue>
#include <stack>
#include <vector>
#include <map>
#include <set>
#include <functional>
#include <algorithm>
using namespace std;
int i, j, k;
int main()
{
int m, n;
cin >> m >> n;
vector<vector<bool>>gr... |
95191b830c363500f5371231f88b82e8940363e5 | 7d54d4cc22d94228cd32a3fcf488aa37740d4fdc | /ejemplos/monedas.cpp | 46c4ee9881c043ec57829b3a073879e709a87974 | [] | no_license | justomiguel/acm-problems | 69c519aa2c6dbc6ca923ebea5b4a77a73e8b8487 | b7e778d568ad6b9860ad9a5ffb00b3424ba7ea93 | refs/heads/master | 2020-05-18T10:40:26.256274 | 2013-11-25T00:55:09 | 2013-11-25T00:55:09 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 441 | cpp | monedas.cpp | #include <stdio.h>
#include <cmath>
#include <stdlib.h>
#include <algorithm>
using namespace std;
int m[5000];
int monedas[] = {1,5,10,25,50,100};
int calculoMin(int t){
if(m[t] != -1) return m[t];
m[t] = t;
for(int i = 0;i < 6;++i){
if(t-monedas[i]>=0)
m[t] = min(m[t],calculoMin(t-monedas[i])+1);
}
return... |
b2c27bc31ef5c9f606dee60eac23a9942c2a759e | bb90a8863868804cffa567524abdbc79b5661f3f | /pion.h | bb164ef905f174e74b16ed683fd9ed4a0a461941 | [] | no_license | karolinasea/jeu_dame_qt | 7947d7fce7669f5a6dbb32b1e6ceeff0882ad066 | d9f1e57831c3e365f58cab9f1f3de65b7eadc8c7 | refs/heads/master | 2020-05-21T15:47:26.986530 | 2019-06-05T18:11:12 | 2019-06-05T18:11:12 | 186,099,950 | 0 | 0 | null | 2019-05-11T07:08:38 | 2019-05-11T07:08:37 | null | UTF-8 | C++ | false | false | 1,051 | h | pion.h | #ifndef PION_H
#define PION_H
#include <QGraphicsPixmapItem>
#include <QGraphicsSceneMouseEvent>
#include "enumCouleur.h"
//#include "listecoups.h"
#include "generateur.h"
class generateur;
class Boite;
class Pion : public QGraphicsPixmapItem
{
public:
Pion(Couleur team, QGraphicsItem *parent = nullpt... |
9e1380bfc5a6de2aa098fbf837418993d56a1411 | e162bec7df809f1852949b64a4323bec6f83f663 | /dynamic-programming/intermediate-problems/ways-to-arrange-balls-such-that-adjacent-balls-are-of-different-types.cpp | 8200ad6d771212360b415257135626b30c61c51a | [] | no_license | tssavita/geeksforgeeks_topicwise_practice | be95383e0a9d41e702b255355fa193ed47d68928 | ecf1fd638085c9af5d128d477d9a9617f00b7ca1 | refs/heads/master | 2021-04-27T06:13:24.280356 | 2018-05-01T18:47:11 | 2018-05-01T18:47:11 | 122,608,820 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 834 | cpp | ways-to-arrange-balls-such-that-adjacent-balls-are-of-different-types.cpp | #include <iostream>
using namespace std;
int count_util(int p, int q, int r, int last) {
if (p < 0 || q < 0 || r < 0)
return 0;
if (p == 1 && q == 0 && r == 0 && last == 0)
return 1;
if (p == 0 && q == 1 && r == 0 && last == 1)
return 1;
if (p == 0 && q == 0 && r == 1 && las... |
9af240a5ecc8f8da48c921bb5481ab0833898659 | 732fcfdfa15d41a906b7b7e90d85dce8cc834ffd | /src/Topic.cpp | c48cdee49b878aba906a2b0f14cfff1eb31ba225 | [] | no_license | PhanDongQuang/Exercise | c5daa2d447c278688b5170184e3cf3533f269e2a | 270136582b8fa93344a4a3a3cc46f9fba646913f | refs/heads/master | 2021-03-17T04:14:10.280196 | 2020-03-13T00:40:24 | 2020-03-13T00:40:24 | 246,958,311 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,363 | cpp | Topic.cpp | /*
* Topic.cpp
*
* Created on: May 7, 2019
* Author: puq81hc
*/
#include "Topic.h"
//.............
#include <iostream>
Topic::Topic() {
m_shutDown = false;
}
void Topic::registerClient(int clientFD) {
std::list<int>::iterator findIter = std::find(clients.begin(), clients.end(), clientFD);
if(find... |
6819a68eef760031190e69627155d0495483323f | da3f57c47bb64a84146e0c561be67d6c7244551f | /codechef/FebruaryChallenge16/two_lines.cpp | 8d699562b27c4482ba1665e47cac2d7e24bad02c | [] | no_license | hieule22/contests | ccd09dcccc596401d86e61e7879f4d4f42f8a59f | ef3d33fffd031c6b56f11b29b884005ae23a7b21 | refs/heads/master | 2020-04-06T23:58:44.103522 | 2017-11-12T21:07:07 | 2017-11-12T21:07:07 | 54,355,631 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,153 | cpp | two_lines.cpp | #include <iostream>
#include <vector>
#include <unordered_map>
#include <algorithm>
using namespace std;
class MySorter
{
public:
bool operator() (const pair<int, int> lhs, const pair<int, int> rhs)
{
return lhs.second > rhs.second;
}
} sorter;
int main()
{
ios_base::sync_with_stdio(false);
int t, n, m;
cin... |
bd8c964f0fd263d30d3f7f51d89569d54b52c18d | f1a89ead25b31c4ffacbabb02adfc9e64bfd7da9 | /test/main.cpp | a1e33f3ae8de812fcfb7a20011240ddb594f62f3 | [] | no_license | M3rs/ogle | a5aa09fbd2c548317f2f4ca446fa486e7ce0571d | 4ebc42e68c2bb08eedcc8722a0353c3c95fe8085 | refs/heads/master | 2021-09-09T19:16:02.141478 | 2018-03-19T05:29:27 | 2018-03-19T05:29:27 | 104,819,836 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,002 | cpp | main.cpp | #include <iostream>
#include <vector>
#include <string>
#include "sol.hpp"
struct Vec {
float x;
float y;
float z;
Vec() : x(0.0f), y(0.0f), z(0.0f) {}
Vec(float x, float y, float z) : x(x), y(y), z(z) {}
};
template<class Value>
std::vector<Value> get_vector(sol::table table)
{
std::vector<Value> items... |
fc94a192e4563b01adbab1ae5a7d8675583c0814 | dfc054679ffcdefa9da6170f6fe2d8f62ec91865 | /Exams/03_VP.cpp | 9d7f85c426bfc6e06d6e7f172ea3793f368f67a5 | [] | no_license | truongtan29602/C-Introduction-To-Programing | 0658b7975b8f29033d6784b64c1033964e87782c | 2ed57a50be3c6c7331445d0fd64fcfb502f46584 | refs/heads/main | 2023-01-22T12:56:06.298094 | 2020-11-20T09:17:35 | 2020-11-20T09:17:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 283 | cpp | 03_VP.cpp | #include <iostream>
using namespace std;
int main () {
int x;
cout << "Nhap x: ";
cin >> x;
int count = 0;
double thickness = 0.1;
while (thickness < x*10) {
thickness *= 2;
count++;
}
cout << "So lan can gap doi la: " << count;
return 0;
}
|
7e3c4994aed4db30518d3c4ad8224a71bc44a53a | f65a120148b1e1ca72f900684598e1d95781e0ec | /source/MetaData/MetaDataModel.h | 4ab5f4bc41bf703f6202015368a4fec61aa56af1 | [] | no_license | mandlm/ESGRAF48 | a5e194263f693b3a9aa52abe32437ac46f335603 | c438d96668118b99ab8c06dad07bf1ffad7cddb6 | refs/heads/master | 2020-03-16T19:58:37.783473 | 2019-02-17T18:50:07 | 2019-02-17T18:50:07 | 132,940,863 | 0 | 0 | null | 2019-10-05T14:14:52 | 2018-05-10T18:41:17 | C++ | UTF-8 | C++ | false | false | 950 | h | MetaDataModel.h | #pragma once
#include "PrintableModel.h"
#include "Age.h"
#include "MetaDataModel.pb.h"
#include <QAbstractTableModel>
#include <QString>
#include <QDate>
class MetaDataModel : public PrintableModel
{
Q_OBJECT
private:
QString m_participant;
QString m_instructor;
QDate m_dateOfBirth;
QDate m_dateOfTest;
QSt... |
048d30a4512ba053ad2eeeb2d10d2761649026ba | 089c787f663a7e98f54cea93af60534276363934 | /Online Judge problems solving/Categorized Problems Solving/Game Theory/LightOj 1247 - Matrix Game.cpp | b6acdf6e06f44a040c390950b0647dbae64ef091 | [] | no_license | delower-hosen/Competitive-Programming | a723e6b4bccdb62b22be5794781b0c4319c86cc4 | 79869ffe451234f0feb00be10176b7de7fa3632f | refs/heads/master | 2022-12-16T00:09:37.866203 | 2020-09-13T18:42:06 | 2020-09-13T18:42:06 | 295,212,924 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 502 | cpp | LightOj 1247 - Matrix Game.cpp | #include<bits/stdc++.h>
using namespace std;
int main()
{
int r,c,xorsum,sum,a,tc,cs=0;
scanf("%d",&tc);
while(tc--){
scanf("%d%d",&r,&c);
for(int i=0;i<r;i++){
sum=0;
for(int j=0;j<c;j++){
scanf("%d",&a);
sum+=a;
}
... |
e65c8816471d640eff2366a39b9bab632aab380f | 963265958c4a407becd166dc5a252ad17b5cebf3 | /playground/qmltube/vimeo.h | c8796d22fe77fb993cea2d99df2f922931b286da | [] | no_license | cuiboand1/ytd-meego | 2c0f47f64d4face6258548fc2610b9fb912a5f43 | 1fde4b0fad4a25b9665defed7cf96f00dab1c37a | refs/heads/master | 2016-09-06T19:36:32.010807 | 2011-08-29T00:26:56 | 2011-08-29T00:26:56 | 40,462,369 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,025 | h | vimeo.h | #ifndef VIMEO_H
#define VIMEO_H
#include <QObject>
class QNetworkAccessManager;
class QNetworkReply;
class Vimeo : public QObject {
Q_OBJECT
Q_PROPERTY(QString currentUser
READ getCurrentUser
NOTIFY currentUserChanged)
Q_PROPERTY(QString accessToken
READ getAc... |
4d36ca86a2705f6a83a6c3c7ab5b34fce7b92387 | 56987a49f6f9a3d468672450cbc9422633ccc737 | /BASIC_GL_ENGINE/FreeCamera.h | edd21d66880104a3ba9c27c0e5a04e0d59b67262 | [] | no_license | JeanPhilippeKernel/BASIC_GL_ENGINE | 52b8214361469aee1fc6ee7042bb0c2de60a2862 | e983c643dfa35e9587916b9f907a0c8ef979103b | refs/heads/master | 2020-07-22T11:52:45.432238 | 2019-11-25T17:29:06 | 2019-11-25T17:29:06 | 207,192,269 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 183 | h | FreeCamera.h | #pragma once
#include "Camera.h"
class FreeCamera : public Camera
{
public:
FreeCamera(glm::vec3 position, glm::vec3 target, glm::vec3 up);
virtual ~FreeCamera() = default;
};
|
36650b647bc405db25d8f3a4bc908b8d732a86b9 | 0590c0321e026151f8939c64fc30dd5cc357b99b | /data structure/sparse-table.cpp | c75583ecca8f1fc4bb36ab46e7e18632256ce38d | [] | no_license | grsu-acm-icpc/acm-notebook | a6aca147c370c5d93764053674e4d6e5e6abc140 | dbda4d7c2ab28532043010b538451275cd950a43 | refs/heads/master | 2020-09-05T23:04:25.636423 | 2016-08-27T13:16:24 | 2016-08-27T13:16:24 | 66,481,988 | 0 | 0 | null | 2016-08-27T13:16:24 | 2016-08-24T16:46:38 | C++ | UTF-8 | C++ | false | false | 2,816 | cpp | sparse-table.cpp | #include <bits/stdc++.h>
#include <ctime>
using namespace std;
typedef long long ll;
typedef double db;
typedef long double ldb;
typedef string str;
typedef pair <int, int> pii;
typedef vector <int> vi;
typedef set <int> si;
typedef map <int, int> mii;
typedef pair <double, double> pdd;
typedef pair <ll, ll> pll;
#de... |
375abb8c37d3e2570b20f962e7a53a57104800df | 9969fd8a7b4d1772f47ac744e47442bbb0499b5c | /src/scenario/pathloss/Pathloss.hpp | 36c1e12bec6dcaf71c4ab1dc035fcd4946cb652e | [] | no_license | openwns/rise | d10822b4866d1c2ed05321727e95666dad9da531 | 72e07bbd0f6184ac3d8ddd7857550838ee7b0a0c | refs/heads/master | 2021-01-20T12:41:49.675861 | 2013-12-06T11:35:24 | 2013-12-06T11:35:24 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,702 | hpp | Pathloss.hpp | /*******************************************************************************
* This file is part of openWNS (open Wireless Network Simulator)
* _____________________________________________________________________________
*
* Copyright (C) 2004-2007
* Chair of Communication Networks (ComNets)
* Kopernikusstr.... |
d1fea2021d318ded2a86d3ce7816e05b4b16cfd3 | b63b0d18e98e1ca0302aaaa37af21ac1a9b09afb | /src/nameserver/test/raft_test.cc | 397cb68c0f20298922e7925116836520c57f8213 | [
"BSD-3-Clause"
] | permissive | armsword/bfs | fd3340c4d94d35d86515e9517e1a536576890e9b | fe5d642c75e735b4e088454633dadc564a2fce55 | refs/heads/master | 2021-01-12T11:24:06.376585 | 2016-11-07T05:41:14 | 2016-11-07T05:41:14 | 72,910,889 | 2 | 0 | null | 2016-11-05T07:09:41 | 2016-11-05T07:09:40 | null | UTF-8 | C++ | false | false | 3,905 | cc | raft_test.cc | // Copyright (c) 2016, Baidu.com, Inc. All Rights Reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// Author: yanshiguang02@baidu.com
#include <stdio.h>
#include <functional>
#include <sofa/pbrpc/pbrpc.h>
#include <gflags/gflags.h>
#include <common/l... |
53e851b9c31c48efe7ab17583c08323e82021710 | 7e9576bf84010a115152564f9af6de5e597c016b | /emulatorbase/Logger.cpp | 502377368fafad312f0b755b79cb1c44407c0687 | [
"MIT"
] | permissive | hotkeysoft/pfe_8085basic | 9b17fd5e664db1996de0be077ba2f74ef8ccd8c7 | b8a669d3d3358250e292d13e78768e80dbfad7fd | refs/heads/master | 2022-11-26T21:52:49.060411 | 2020-07-11T20:21:00 | 2020-07-11T20:21:00 | 275,280,990 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,569 | cpp | Logger.cpp | #include "Logger.h"
#include <stdio.h>
#include <string.h>
#include <stdarg.h>
#include <exception>
void(*Logger::m_logCallbackFunc)(const char *str);
char Logger::m_logBuffer[1024];
Logger::ModuleList Logger::m_moduleList;
Logger::Logger(const char* moduleID) : m_moduleID(moduleID), m_enabled(true)
{
Re... |
f55c5c475e4f71bf10bb5389947d90ab5399132c | cd45a5a20de51f9e2e829a027045e927e63e4c16 | /apps/wrf2vdc/wrf2vdc.cpp | 3e719f618c644914e551a1e00a010cac86076224 | [] | no_license | StasJ/vapor-formatted | b98f55c6528827122bf191c72be5a2165253d1cc | 9fad47d88714ef835b78f6c1dd855d66b6aa90da | refs/heads/master | 2022-12-05T22:29:23.048696 | 2020-08-13T21:05:11 | 2020-08-13T21:05:11 | 287,616,510 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,367 | cpp | wrf2vdc.cpp | #include <fstream>
#include <iostream>
#include <sstream>
#include <string.h>
#include <vector>
#include <vapor/CFuncs.h>
#include <vapor/DCWRF.h>
#include <vapor/FileUtils.h>
#include <vapor/OptionParser.h>
#include <vapor/VDCNetCDF.h>
using namespace Wasp;
using namespace VAPoR;
struct opt_t {
int nthreads;
... |
38b0d69c0bdd5dfb0273f6100f22797b18f09a33 | a3397257311767947ac482db871c14ddd27f1d4e | /ISLAND/Program/Program.cpp | 9375454f9f0fcfec083b7e6c044b4a303172cb69 | [] | no_license | jheun66/ISLAND | 10813b414585e5abcbefe1cb452c34795a29039d | 54109db38de0473a3a32f8d9298f5c36ab2f6340 | refs/heads/main | 2023-01-14T13:40:07.010515 | 2020-11-12T05:46:32 | 2020-11-12T05:46:32 | 305,555,595 | 1 | 0 | null | null | null | null | UHC | C++ | false | false | 2,596 | cpp | Program.cpp | #include "Framework.h"
#include "Scene/CubeScene.h"
#include "Scene/QuadScene.h"
#include "Scene/TerrainScene.h"
#include "Scene/QuadTreeTerrainScene.h"
#include "Scene/ModelScene.h"
Program::Program()
{
scene = new TerrainScene();
srand(time(NULL));
}
Program::~Program()
{
delete scene;
}
v... |
34461272902a82a7d7a3d20703ff902ab88e1f3e | 8a1df632f92e85b910be747ec50028ac1ba1669c | /include/Exception.h | 1dc68c3fd799beffa84b6de20b93ecbe4a1af843 | [] | no_license | Elieu/GaussianShape | 58dcd7d6425d9fff6537f852347e438a94c0fec3 | f832896cbd25fdf6c76efc8225ddff53f9e36916 | refs/heads/master | 2020-05-03T05:12:59.941317 | 2012-03-06T02:15:14 | 2012-03-06T02:15:14 | 3,633,610 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,747 | h | Exception.h | /**
* Exception Module
*
* Copyright(c) 2010 ECUST.
* All Rights Reserved.
*
* @file Exception.h
* @author Chaoqian Cai
* @version v1.0
* @date 2011-02-23
*/
#ifndef EXCEPTION_INCLUDE_H
#define EXCEPTION_INCLUDE_H
//
#include <string>
/**
* Exception relationship map:
*
* CExc... |
8f262fca8b8e7288d403f84da0ebfdac018b4c23 | a648fcbc90606b5ac2ac3e9ee53c4a8fffcf14e4 | /BattleTankOnline/BattleCity/BattleCity/Sprite.cpp | 64ba64146b68f1ac464f1a4773fa30dddb6f140e | [] | no_license | vanhoaile95/OOAD-SVN | 35e61569180367dbd9652e6e86a667f4bc6f174e | 282fec76ce3a4baf46539e11e44343ea8b2d4036 | refs/heads/master | 2020-06-18T01:22:06.103481 | 2017-01-04T15:43:54 | 2017-01-04T15:43:54 | 74,960,984 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,256 | cpp | Sprite.cpp | #include "Sprite.h"
CSprite* CSprite::Atlas1 = NULL;
CSprite* CSprite::UI = NULL;
CSprite::CSprite(MTexture Texture)
{
_Image = TextureManager::GetInstance()->Get(Texture);
if (_Image == NULL) {
int i = 0;
i++;
}
}
void CSprite::Draw(P pos)
{
if (_Image != NULL)
{
RECT srect;
srect.le... |
0334a1b430fd7f60f69d1207786afeea9de884d5 | b57ae0c52f025b9968736c005c09abfee92ab903 | /src/X.h | 6af436de642eb0b590ee0280bfccb0466e5ef238 | [] | no_license | vladbataev/BigML | 786b8431297cc4a4605f7f3e211ca6087b33d2b4 | 0ea8a34513db68cee825eb1b50cc91c7a0572612 | refs/heads/master | 2020-03-10T08:17:12.523791 | 2018-05-19T21:20:54 | 2018-05-19T21:20:54 | 129,281,720 | 0 | 0 | null | 2018-05-13T12:31:23 | 2018-04-12T16:36:56 | Jupyter Notebook | UTF-8 | C++ | false | false | 717 | h | X.h | #pragma once
#include "factor.h"
#include <Eigen/Dense>
#include <Eigen/Sparse>
#include <set>
#include <vector>
class CachedWTransform {
public:
CachedWTransform(std::vector<int>);
Eigen::SparseMatrix<double> operator()(size_t T,
const Eigen::VectorXd& w) cons... |
5e39d7446af91ff356d3ae87b4455ef22148304d | 414d8df54ad3beef3c6af52fe31ea037aa4fc90c | /ITC Assignment 1/task 2.cpp | 194501924fac8733b79e2def6a6bc6bc2c79dbf2 | [] | no_license | musakhan18/ITC | 4f5874cb36543c0e4e8bbc54275d5a8b3e64159e | 16dbcb14b59ae3c466d85d153e0a4c58987a68c7 | refs/heads/main | 2023-04-04T10:29:34.303963 | 2021-03-30T13:31:44 | 2021-03-30T13:31:44 | 352,686,214 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 347 | cpp | task 2.cpp | #include<iostream>
using namespace std;
int main()
{
int a;
cout << "enter a four digit number " << endl;
cin >> a;
if (a > 999 && a < 9999)
{
a = a + 8;
a = a / 3;
a = a % 5;
a = a * 5;
cout << "your result is = " << a << endl;
}
else
{
cout << "Your number not contain 4 digits" <<... |
3e6430f485667019b9dee2806ee0b03b4067c80f | 3ff1fe3888e34cd3576d91319bf0f08ca955940f | /wedata/src/v20210820/model/SourceFieldInfo.cpp | 60c89b88c85fe53637e72fbc48a23cb7048bbd61 | [
"Apache-2.0"
] | permissive | TencentCloud/tencentcloud-sdk-cpp | 9f5df8220eaaf72f7eaee07b2ede94f89313651f | 42a76b812b81d1b52ec6a217fafc8faa135e06ca | refs/heads/master | 2023-08-30T03:22:45.269556 | 2023-08-30T00:45:39 | 2023-08-30T00:45:39 | 188,991,963 | 55 | 37 | Apache-2.0 | 2023-08-17T03:13:20 | 2019-05-28T08:56:08 | C++ | UTF-8 | C++ | false | false | 5,020 | cpp | SourceFieldInfo.cpp | /*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. 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
... |
d253e03462834582459fa1600572ef8f4f2f5cfd | d9ebc929c59ac57962e184da8e31febe78a06691 | /src/hlct/InfoScreen.cpp | 873feaf52b2f6edcd3cd24420444c5cd657e2115 | [] | no_license | serkansokmen/hlct | d3ae30a3aab8f09f9ea85219611e89bfea3937c1 | b88032745b9cd2bdadbc582fb244623b6fde1df7 | refs/heads/master | 2021-01-10T04:56:42.699518 | 2016-03-14T15:38:13 | 2016-03-14T15:38:13 | 53,314,755 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,124 | cpp | InfoScreen.cpp | #include "InfoScreen.h"
hlct::InfoScreen::InfoScreen(){
timer = shared_ptr<ofxAnimatableFloat>(new ofxAnimatableFloat);
timer->setup();
timer->setRepeatType(LOOP_BACK_AND_FORTH);
timer->setCurve(LINEAR);
this->msgIndex = -1;
}
void hlct::InfoScreen::setup(const ofRectangle& stageRect,
... |
7782d2114a33f5cb1c0daa70259e48ced1507ec7 | 3ded37602d6d303e61bff401b2682f5c2b52928c | /ml/1063/Classes/sl_layer/layer/SL_EatLayer.h | eb166f541b04f6297b0ea9c71ed280a278e8660b | [
"MIT"
] | permissive | CristinaBaby/Demo_CC | 8ce532dcf016f21b442d8b05173a7d20c03d337e | 6f6a7ff132e93271b8952b8da6884c3634f5cb59 | refs/heads/master | 2021-05-02T14:58:52.900119 | 2018-02-09T11:48:02 | 2018-02-09T11:48:02 | 120,727,659 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,990 | h | SL_EatLayer.h | //
// SL_EatLayer.h
// OreoMaker
//
// Created by wusonglin1// on 14-11-10.
//
//
#ifndef __OreoMaker__SL_EatLayer__
#define __OreoMaker__SL_EatLayer__
#include <iostream>
#include "cocos2d.h"
#include "BaseLayer.h"
#include "Global.h"
#include "SL_ScribbleTouchNode.h"
#include "ToolSprite.h"
#include "ShadeSpri... |
91f59696bd0c9831253356581bddf9258773b313 | 6ddbc5941d969596d8c06cc2bc08827db175a3a7 | /parameter.h | d1ad37b72143db6f548252e85e6738452f36b4ea | [] | no_license | Emzapp/proj2 | 99080d14703e99bfbd0d267e3d810dc89eb49603 | 2d5b4638fd21d51576ec4f9fa2acc5d9f932b3f7 | refs/heads/master | 2023-08-17T14:01:32.240809 | 2021-10-02T23:36:58 | 2021-10-02T23:36:58 | 412,933,414 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 201 | h | parameter.h | #pragma once
#include "string"
using namespace std;
class Parameter {
public:
void SetParam(string param);
string ToString();
private:
string theParameter;
}; |
962affdc26a95dac7acf4a441a9a3b8fbbae91b2 | e36e9d2945e51497206304e048c6f2635b575f4a | /simoh/src/Object.hpp | 6094c6e4aeefda75f4d58f219a4515919b25b3fe | [
"BSD-3-Clause"
] | permissive | sirikata/sirikata | 593709a8ed477d11649a2447a113f559f1cfd11a | 3a0d54a8c4778ad6e25ef031d461b2bc3e264860 | refs/heads/master | 2023-03-07T10:06:09.815675 | 2015-12-13T23:07:45 | 2015-12-13T23:07:45 | 109,733 | 54 | 19 | null | null | null | null | UTF-8 | C++ | false | false | 7,508 | hpp | Object.hpp | /* Sirikata
* Object.hpp
*
* Copyright (c) 2009, Ewen Cheslack-Postava
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
* * Redistributions of source code must retain the above c... |
cb1ac7f1e5a723b79e3ee9bbdcc42307c1e56a5c | f7b5329c6ddc4353e724d8b2119748ae2458d768 | /VideoCodec/encoder_x264.h | 17a6fd92af85f219dbb429c59c0cac9f147af362 | [] | no_license | hotkidfamily/MediaVideoProject | ac9471bd8fd6131e6cc0dc3a93365b25ca7d26b6 | 2c4e27d4f3345b4d33f61da9c48deb49ee985b8c | refs/heads/master | 2021-01-12T04:21:39.661941 | 2020-11-13T09:36:58 | 2020-11-13T09:36:58 | 77,592,422 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,268 | h | encoder_x264.h | #pragma once
#include "PackageManager.h"
#include "IVideoCodec.h"
extern "C" {
#include "x264.h"
}
class CLibx264 : public ICodec
{
public:
CLibx264();
~CLibx264();
/* step 2 */
bool open();
/* step 4 */
void close();
/* step 1 */
bool setConfig(const ENCODECCFG &config);
/* step 3.x */
bool reset(const... |
934b60607dfd79ac05afb8f329a0add4a1809eea | 6f0257fcee235791496d13ecc1c848c19017f06e | /main.cpp | e71f9794bacced39b600f373083e30f5f0134200 | [] | no_license | LemosDanilo/TP2-Conteneurs-et-fichiers | 391ffb345ca3e19507c0456128b2bb511051579d | 6feb7c5c389a6f500e5ec97d917c1c35c071cfce | refs/heads/master | 2022-12-12T09:52:47.096805 | 2020-09-08T00:36:55 | 2020-09-08T00:36:55 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 242 | cpp | main.cpp | #include <fstream>
#include <iostream>
using namespace std;
int main() {
ifstream lecteur("hiscore.txt");
string line;
while(!lecteur.eof()) {
lecteur >> line;
if(!lecteur.eof()) {
cout << line << endl;
}
}
lecteur.close();
} |
0e7a8faa5b1ad05c6096a005c8123cf51961a517 | 50431019976e12f4fb87b985f8829650240c235c | /LineEquations.cpp | 75e242fec667a123973cbc0f63fef322f35697a9 | [] | no_license | Charlieranderson/GraphicsFinalProject | 80117ed1870525eacb09c23d8c49986c8962dcf3 | 0969bf1c5114a52cc99bfce687a99caee876a6f3 | refs/heads/main | 2023-01-18T23:47:20.859023 | 2020-12-01T00:08:43 | 2020-12-01T00:08:43 | 309,230,737 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,783 | cpp | LineEquations.cpp | #include "StdAfx.h"
#include "LineEquations.h"
#include "MatrixEquations.h"
#include <iostream>
//Orders Vertices for LEE calculations in Object Order
void LineEquations::OrderVerts(GzCoord* ptr, GzCoord* normalPtr, GzTextureIndex* uvList) {
//GzCoord temp;
float* currentPtr, *nextVal;
bool topBottomRelationship =... |
4ca411c26cb859be12c2d8d8027908c11cef717a | 8f50c262f89d3dc4f15f2f67eb76e686b8f808f5 | /Trigger/TrigEvent/TrigNavTools/src/getLabel.cxx | 11480ae3c9523bcf3307433868a9e56a02b93934 | [
"Apache-2.0"
] | permissive | strigazi/athena | 2d099e6aab4a94ab8b636ae681736da4e13ac5c9 | 354f92551294f7be678aebcd7b9d67d2c4448176 | refs/heads/master | 2022-12-09T02:05:30.632208 | 2020-09-03T14:03:18 | 2020-09-03T14:03:18 | 292,587,480 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 815 | cxx | getLabel.cxx | /*
* Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration.
*/
/**
* @file TrigNavTools/src/getLabel.cxx
* @author scott snyder <snyder@bnl.gov>
* @date May, 2020
* @brief Helper function to get a label for a feature.
*
* Broken out from the old TrigNavigationSlimmingTool (B. Smith / T. Bold).... |
0d6c72ff5dbf227ee348020f6d2fa64bd3c7b2eb | b5d6bef867559a53ac6cd82b65624458dd20214f | /baekjoon/14890.cpp | 06c0759f8acba3d1ba36150dbf0fc73fddce6225 | [] | no_license | jingnee/algorithm | cfb33ab5c5243c2d7752746aadfa9d3017f63072 | 3c99db64c3840a3696bd188b5fbb6b54990303c4 | refs/heads/master | 2022-06-22T22:15:36.838947 | 2022-06-09T09:22:04 | 2022-06-09T09:22:04 | 231,215,092 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,274 | cpp | 14890.cpp | //경사로
#include <iostream>
#include <cmath>
using namespace std;
int N, L, ans;
int map[101][101];
int main() {
cin >> N >> L;
for (int i = 0; i < N; i++) {
for (int j = 0; j < N; j++) {
cin >> map[i][j];
}
}
//가로 확인
for (int i = 0; i < N; i++) {
bool flag = true;
int prev = 1;
for (int j = 1; j < N... |
bb78a6d681c0227f9e866474ae9c45f8acac3b78 | 0d05c22e94372d2c9f32763aeeca82347eb3cb0f | /CS32/Homework1/SalaryMap.cpp | 913c27a418215c27a82866ddcf87d03990bf15a1 | [] | no_license | rlchung/UCLA-Undergraduate-Coursework | cc4c1f1a25f3d6bdf5fc84a9cd77a76db697f137 | 7f366ae96d921b8cf045efc3fcbdd2fff99636c9 | refs/heads/master | 2021-01-23T07:15:38.308311 | 2017-01-31T08:14:46 | 2017-01-31T08:14:46 | 80,494,057 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,097 | cpp | SalaryMap.cpp | #include "SalaryMap.h"
#include <iostream>
SalaryMap::SalaryMap()
{
//create an empty salary map
};
// If an employee with the given name is not currently in the map,
// there is room in the map, and the salary is not negative, add an
// entry for that employee and salary and return true. Otherwise
// m... |
b8cd50d5ce39c09a1bdce13290982180f212ae06 | 95c415af4e44198214566ca25451bb2950670f99 | /include/extend_parser.h | 17a5415703311f73f529e2a5a5f39346e48ff4cc | [] | no_license | pabloufrn/bares | a1b66992d40c82f088f06773ca0badd45353a7ae | 072fc0a682e80a34e7a580af4220694b86e15406 | refs/heads/master | 2020-03-15T07:41:23.444306 | 2018-05-13T23:05:29 | 2018-05-13T23:05:29 | 132,034,328 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,870 | h | extend_parser.h |
/// Imprimir qual o erro que foi gerado durante a execução do programa.
/// \param struct do erro.
/// \return erro gerado.
std::string print_error_msg( const Parser::ResultType & result )
{
switch ( result.type )
{
case Parser::ResultType::INTEGER_OUT_OF_RANGE:
std::cout << "Integer consta... |
070525578be55ee6f112ada6ad98783805c2febc | 3821202739fa08cbb373351d387c810bbf4a934a | /structural/src/facade/expression_node.cc | 8523dcec3baee794f947830850aaed00574bd53d | [
"MIT"
] | permissive | wqx081/DesignPatterns | 464a4a3dc69bdb9b9ca73529d76357dbc0f21ccc | 0645544706c915a69e1ca64addba5cc14453f64c | refs/heads/master | 2021-01-17T10:42:21.357680 | 2015-11-06T00:43:58 | 2015-11-06T00:43:58 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 983 | cc | expression_node.cc | // Based on "Design Patterns: Elements of Reusable Object-Oriented Software"
// book by Erich Gamma, John Vlissides, Ralph Johnson, and Richard Helm
//
// Created by Bartosz Rachwal. The National Institute of Advanced Industrial Science and Technology, Japan.
#include "expression_node.h"
#include "../../../operation... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.