text
stringlengths
4
6.14k
// Fill out your copyright notice in the Description page of Project Settings. #pragma once #include "IOroBaseObject.generated.h" // This class does not need to be modified. UINTERFACE(MinimalAPI) class UIOroBaseObject : public UInterface { GENERATED_UINTERFACE_BODY() }; /** * */ class OROUNREALPROTOTYPE_API II...
#include <data.h> #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <string.h> #include <time.h> #define EXPECT(cond)\ if (!(cond)){\ fprintf(stderr, "Error: %s at %s:%d\n", #cond, __FILE__, __LINE__);\ exit(-1);\ } void test000(const char* fname){ NGXARC arc = 0; NGXBLK block = 0; ...
// stdafx.h : include file for standard system include files, // or project specific include files that are used frequently, but // are changed infrequently // #ifndef STDAFX_H #define STDAFX_H #include "targetver.h" #include <stdio.h> #ifndef UCLA_HAVE_UNIX #include <tchar.h> #endif #include <iostream> // TODO: ...
/*!*********************************************(C)** + Will Canada : DecipherOne Productions 2007 + |--------------------------------------------------| | This class is derived from TObject(base object | | class) and is an somewhat abstract class for | | creating and drawind specific shapes, which | |...
/* Copyright (c) 2011 - Eric P. Mangold * Copyright (c) 2011 - Peter Le Bek * * See LICENSE.txt for details. */ /* Just a few extra tests for lines/branches that have no coverage yet. * The hash-table implementation was copied from CII and is generally * believed to be bug-free. Even though we don't have direct ...
// // GKNavigationBarViewController.h // GKNavigationBarViewController // // Created by QuintGao on 2017/7/7. // Copyright © 2017年 QuintGao. All rights reserved. // 所有需要显示导航条的基类,可根据自己的需求设置导航栏 // 基本原理就是为每一个控制器添加自定义导航条,做到导航条与控制器相连的效果 #import <UIKit/UIKit.h> #import "GKCategory.h" #import "GKNavigationBar.h" #impor...
// »ªÇڿƼ¼°æÈ¨ËùÓÐ 2008-2022 // // ÎļþÃû£ºuisignal.h> // ¹¦ ÄÜ£ºÐźÅÁ¿¡£ // // ×÷ ÕߣºMPF¿ª·¢×é // ʱ ¼ä£º2010-12-12 // // ============================================================ #ifndef __UISIGNAL_H_ #define __UISIGNAL_H_ #include <System/Windows/Object.h> namespace suic { class SUICORE_API UISignal {...
/***************************************************************************** * * \file * * \brief Generic 16-bit partial convolution function for the AVR32 UC3 * * This file contains the code of the partial convolution. * * Copyright (c) 2014 Atmel Corporation. All rights reserved. * * \asf_license_start * ...
void render_matrices(void) { static bool init=true; static GLuint fb; static GLuint fbo_points[4]; GLuint fb_type = GL_TEXTURE_RECTANGLE_ARB; GLuint type = GL_TEXTURE_RECTANGLE_ARB; static int fb_width = spline_tex.width; static int fb_height = spline_tex.height; if(init) { glGenFramebuffersE...
#ifndef SHAPELENS_WEIGHTFUNCTION_H #define SHAPELENS_WEIGHTFUNCTION_H #include "../Typedef.h" #include "Point.h" namespace shapelens { /// Abstract base class for weight functions. class WeightFunction { public: /// Get value of weight function at position \p P. virtual data_t operator()(const Point<dat...
// // CMusicWesternHarmony.h // CMusic // // Created by CHARLES GILLINGHAM on 10/2/15. // Copyright (c) 2015 CharlesGillingham. All rights reserved. // #import "CMusicHarmony.h" #import "CMusicHarmony+Scales.h" // These six scales are the only scales where all intervals at a scale distance of 2 are major and mino...
#ifndef BINARYTREENODE_H #define BINARYTREENODE_H #include <iostream> using namespace std; struct binaryTreeNode { int element; binaryTreeNode *leftChild, *rightChild; binaryTreeNode() {leftChild = rightChild = NULL;} binaryTreeNode(const int& theElement) { element = theElement; ...
/* * boatWithSupport.h * * Created on: 16 de Abr de 2013 * Author: Windows */ #ifndef BOATWITHSUPPORT_H_ #define BOATWITHSUPPORT_H_ #include "Boat.h" class BoatWithSupport: public Boat { private: int extraCap; int lastTransported; int lastMaxCap; public: /** * Creates a new boat w...
/** * Caesar cipher via command-line interface. */ #include <stdlib.h> #include <stdio.h> #include "caesar.h" void parse_args(int argc, char** argv); void print_help(); void run_caesar(char* input, int shift); int main(int argc, char** argv) { parse_args(argc, argv); return 0; } void parse_args(int argc,...
// // TTAITextAuxInputView.h // // Created by Doug Lovell on 4/16/13. // Copyright (c) 2013 Douglas Lovell. MIT License. // /* It bothers me as an old Java guy that I have to expose the txtActiveField instance variable and the reset method in order to use them from the subclass. There are posts on this topic a...
#include <stdio.h> #include <stdlib.h> #include <err.h> #include "arg.h" #include "util.h" char *argv0; int main(int argc, char **argv) { int rflag = 0; ARGBEGIN { case 'r': // repeat rflag = 1; } ARGEND if(argc < 2) { USAGE("[-r] file1 file2"); exit(1); } ...
#pragma once #include <inttypes.h> #include "vector2.h" #include "vector3.h" // scaling factor from 1e-7 degrees to meters at equater // == 1.0e-7 * DEG_TO_RAD * RADIUS_OF_EARTH #define LOCATION_SCALING_FACTOR 0.011131884502145034L // inverse of LOCATION_SCALING_FACTOR #define LOCATION_SCALING_FACTOR_INV 89.83204953...
// // WithingsError.h // Withings-SDK-iOS // // Copyright (c) 2016 jdrevet // // 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 ...
/* Generated by file2c from "association_source.h.in" */ const unsigned char association_source[] = { 0x45,0x6E,0x75,0x6D,0x5F,0x41,0x73,0x73,0x6F,0x63,0x69,0x61,0x74,0x6F,0x72, 0x5F,0x4E,0x61,0x6D,0x65,0x73,0x5F,0x53,0x74,0x61,0x74,0x75,0x73,0x20,0x3C, 0x43,0x4C,0x41,0x53,0x53,0x3E,0x5F,0x50,0x72,0x6F,0x7...
// // ViewController.h // LDBTests // // Created by Emil Wojtaszek on 16.11.2015. // Copyright © 2015 AppUnite. All rights reserved. // #import <UIKit/UIKit.h> @interface ViewController : UIViewController @end
/** * \file * * Copyright (c) 2014 Atmel Corporation. All rights reserved. * * \asf_license_start * * \page License * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must ...
// // AboutViewController.h // NetAsistant // // Created by Zzy on 11/29/14. // Copyright (c) 2014 Zzy. All rights reserved. // #import <UIKit/UIKit.h> @interface SAAboutViewController : UITableViewController @end
// Copyright (c) 2011-2015 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef BITCOIN_QT_SENDCOINSENTRY_H #define BITCOIN_QT_SENDCOINSENTRY_H #include <qt/walletmodel.h> #include <QStackedWidge...
#ifndef Hutils #define Hutils #include <sstream> #include <vector> #include "../struct.h" using namespace std; STtanggal getDate(); string char2Kelamin(char kelamin); string char2Jenis(char jenis); string int2string(int number); string char2string(char ch); string tolower(string text); bool allisalnum(string te...
// // SimpleLoadingView.h // SimpleLoadingView // // Created by 庞平飞 on 2016/12/31. // Copyright © 2016年 PangPingfei. All rights reserved. // #import <UIKit/UIKit.h> //! Project version number for SimpleLoadingView. FOUNDATION_EXPORT double SimpleLoadingViewVersionNumber; //! Project version string for SimpleLoad...
// // FullyReplaceSegue.h // MMDrawerExample // // Created by Shwet Solanki on 09/01/15. // Copyright (c) 2015 shwetsolanki. All rights reserved. // #import <UIKit/UIKit.h> @interface FullyReplaceSegue : UIStoryboardSegue @end
// This file is distributed under the MIT license. // See the LICENSE file for details. #pragma once #ifndef VSNRAY_COMMON_TIMER_H #define VSNRAY_COMMON_TIMER_H 1 #include <chrono> #ifdef __CUDACC__ #include <cuda.h> #endif namespace visionaray { //----------------------------------------------------------------...
int sum (int a, int b) { return 0; } int main() { int a = sum(1, 2); int *b = &a; *b = 10; *(b+1) + 7 = 20; sum(1, 2) = 3; 1 + 2 = a; "3" = a; 5 && 9 = "hello"; return 0; }
#ifndef GAME_H #define GAME_H #include "Player.h" #include "Enemy.h" #include "Gambling.h" #include "Store.h" class Game { public: void MainMenu(); private: enum MenuType { eMain = 0, ePlayerClass, eHowToPlay }; void SetPlayerData(); int InitializePlayerClass(); void SetPla...
// // MTDealsViewController.h // 美团HD // // Created by zhuzhu on 15/11/24. // Copyright (c) 2014年 heima. All rights reserved. // 团购列表控制器(父类) #import <UIKit/UIKit.h> @interface MTDealsViewController : UICollectionViewController /** * 设置请求参数:交给子类去实现 */ - (void)setupParams:(NSMutableDictionary *)params; @end
#pragma once #include "GameObject.h" class DSky : public DGameObject { public: DSky(FLOAT length); ~DSky(); BOOL CreateSkybox(LPWSTR frontTextureFile, LPWSTR backTextureFile, LPWSTR leftTextureFile, LPWSTR rightTextureFile, LPWSTR topTextureFile); private: BOOL InitVertices(LPD3DXMESH skyboxMesh); BOOL InitInd...
#include <stdio.h> int main(int argc, char *argv[]) { int bugs = 100; double bug_rate = 1.2; printf("You have %d bugs at the imaginary rate of %f.\n", bugs, bug_rate); long universe_of_defects = 1L * 1024L * 1024L * 1024L; printf("The entire universe has %ld bugs.\n", univer...
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #include <errno.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> const int BUFFER_SIZE = 1024; static void close_quietly(int fd) { int e = errno; close(fd); errno = e; } static void print_usage(const char *n...
#include <stdio.h> #include "funlib/funlib.h" void main() { printf("Hello World!"); hello(); }
// The MIT License // // Copyright (c) 2013 Ryan Davies // // 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, m...
// // SMobiLogger.h // SMobiLogger // // Created by Systango on 4/12/13. // Copyright (c) 2013 Systango. All rights reserved. // #import <Foundation/Foundation.h> #import <Realm/Realm.h> #import <KSCrash/KSCrash.h> #import <KSCrash/KSCrashInstallationStandard.h> #import <KSCrash/KSCrashInstallationEmail.h> #import...
/*************************************************************** * Filename: READBIN.C * * Purpose: Read an input 8 or 16 bit binary image file into * the array pointed to by "image_ptr". * * Passed Parameters: * filename: name of input image data file * image_ptr: pointer to image to fill with this data...
/** * The MIT License * * Copyright (C) 2017 Kiyofumi Kondoh * * 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,...
#include "../vendor/unity/src/unity.h" #include "../src/fibonacci.h" /** Test that Fibonacci numbers generated through iteration match expected. * * @test The function iterativeFibonacci is called with a variety of n and its * return asserted against the expected value of f(n). * */ void test_iterativeFi...
// Copyright mogemimi. Distributed under the MIT license. #pragma once #include "pomdog/basic/conditional_compilation.h" #include "pomdog/basic/export.h" #include "pomdog/math/forward_declarations.h" #include "pomdog/math/vector2.h" POMDOG_SUPPRESS_WARNINGS_GENERATED_BY_STD_HEADERS_BEGIN #include <array> POMDOG_SUPP...
// This file was generated based on 'C:\ProgramData\Uno\Packages\UnoCore\0.13.2\Source\Uno\Collections\$.uno'. // WARNING: Changes might be lost if you edit this file directly. #ifndef __APP_UNO_COLLECTIONS_I_ENUMERABLE__STRING_H__ #define __APP_UNO_COLLECTIONS_I_ENUMERABLE__STRING_H__ #include <app/Uno.Object.h> #in...
/********************************************************************* * * Copyright (C) 2002, Karlsruhe University * * File path: ctors.h * Description: Prioritized constructors support * * Redistribution and use in source and binary forms, with or without ...
/* * Copyright(c) Sophist Solutions, Inc. 1990-2022. All rights reserved */ #ifndef _Stroika_Foundation_IO_Network_HTTP_Versions_h_ #define _Stroika_Foundation_IO_Network_HTTP_Versions_h_ 1 #include "../../../StroikaPreComp.h" #include <map> #include <string> #include "../../../Configuration/Common.h" /* * TODO...
/* * Generated by class-dump 3.3.4 (64 bit). * * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by Steve Nygard. */ #import "NSObject.h" #import "SLMicroBlogSheetDelegate-Protocol.h" #import "SLTwitterClientSessionProtocol-Protocol.h" @class NSCache, SLRemoteSessionProxy<SLTwitterRemoteSessi...
#ifdef __OBJC__ #import <UIKit/UIKit.h> #else #ifndef FOUNDATION_EXPORT #if defined(__cplusplus) #define FOUNDATION_EXPORT extern "C" #else #define FOUNDATION_EXPORT extern #endif #endif #endif FOUNDATION_EXPORT double Pods_DYLiveVersionNumber; FOUNDATION_EXPORT const unsigned char Pods_DYLiveVersionString[];
#include "my_functions.h" int main(void) { print_base16(); return (0); }
#pragma once #include <Skuld/Support/Path.h> namespace Skuld { namespace PathInstances { extern PathImplementRef Posix; extern PathImplementRef Win32; }; }
// Copyright (c) 2011-2013 The Bitcoin developers // Copyright (c) 2014 Dyffy Inc. // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef OPTIONSMODEL_H #define OPTIONSMODEL_H #include <QAbstractListModel> QT_BEGIN_NAMESP...
#include <bert/encoder.h> #include <bert/magic.h> #include <bert/errno.h> #include "test.h" unsigned char output[2]; int main() { bert_encoder_t *encoder = test_encoder(output,2); bert_data_t *data; if (!(data = bert_data_create_int(0))) { test_fail("malloc failed"); } int result; if ((result = bert_enco...
#ifndef DISK_COLLECT_H_INCLUDED #define DISK_COLLECT_H_INCLUDED #include "CollectProto.h" #include "WMIUtil.h" #include "WinSetupUtil.h" class DiskCollector: public AutoCreateDataCollector<DiskCollector>, public WMIUtilLocal<DiskCollector>, public WinSetupClientLocal<DiskCollector> { public: DiskColl...
// // MarkerTextView.h // Line View Test // // Created by Paul Kim on 10/4/08. // Copyright (c) 2008 Noodlesoft, LLC. All rights reserved. // // 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 Sof...
/* Copyright (c) 2001 Matej Pfajfar. * Copyright (c) 2001-2004, Roger Dingledine. * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson. * Copyright (c) 2007-2020, The Tor Project, Inc. */ /* See LICENSE for licensing information */ /** * \file cstring.c * * \brief Decode data that has been written as a C ...
/* Author: Debbie Nuttall <debbie@cromulence.com> Copyright (c) 2016 Cromulence LLC 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 t...
/* The MIT License Copyright (C) 2011, 2012 Zilong Tan (eric.zltan@gmail.com) 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 ...
// // UIStoryboard+LM.h // LMCategory // // Created by 李蒙 on 15/7/20. // Copyright (c) 2015年 李蒙. All rights reserved. // #import <UIKit/UIKit.h> #define LMInitialStoryboardName(name) [UIStoryboard lm_initialViewControllerWithStoryboardName:name] #define LMInitialStoryboardNameIdentifier(name, identifier) [UIStory...
#ifndef _T_CFFEX_MARKET_ #define _T_CFFEX_MARKET_ #include "tdef.h" //***************************************************************************************** //ÒÔÉÏ·þÎñÊý¾ÝID±£ÁôÓëԭϵͳ¼æÈÝ£¬ÒÔÏ·þÎñIDÕë¶Ôÿ¸öÊг¡·Ö¿ª¶¨Òå //-----------------------------------ÖнðËù----------------------------------------------- #d...
#pragma once //------------------------------------------------------------------------------ /** @class Oryol::_priv::urlLoader @ingroup _priv @brief processes a HTTP request and returns HTTP response @see HTTPClient */ #if ORYOL_USE_LIBCURL #include "HttpFS/private/curl/curlURLLoader.h" ...
// // Swiftly.h // Swiftly // // Created by Nora Trapp on 6/23/15. // Copyright (c) 2015 Trapp Design. All rights reserved. // #import <UIKit/UIKit.h> //! Project version number for Swiftly. FOUNDATION_EXPORT double SwiftlyVersionNumber; //! Project version string for Swiftly. FOUNDATION_EXPORT const unsigned ch...
#ifndef UTILS_H #define UTILS_H #include <stdio.h> #define ERR(...) fprintf(stderr, __VA_ARGS__); return 1; int rand_int(int min, int max); int read_move(FILE *f, int *x, int *y); void print_move(int x, int y); #endif
/* * ldisc.c: PuTTY line discipline. Sits between the input coming * from keypresses in the window, and the output channel leading to * the back end. Implements echo and/or local line editing, * depending on what's currently configured. */ #include <stdio.h> #include <ctype.h> #include "putty.h" #incl...
#pragma once #include "material/material.h" namespace AT_NAME { class FlakesNormal { private: FlakesNormal(); ~FlakesNormal(); public: static AT_DEVICE_MTRL_API aten::vec4 gen( real u, real v, real flake_scale = real(50.0), // Smaller values ...
/* * Generated by class-dump 3.3.4 (64 bit). * * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by Steve Nygard. */ #import "NSObject.h" @class NSArray; // Not exported @interface UIWebOptGroup : NSObject { id <UIWebSelectedItemPrivate> _group; NSArray *_options; long long _offse...
// // Copyright (c) 2008-2019 the Urho3D project. // // 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, mod...
// // AppDelegate.h // anima // // Created by Daniel Fliegauf on 06/06/14. // Copyright (c) 2014 Daniel Fliegauf. All rights reserved. // #import <UIKit/UIKit.h> @interface AppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end
#include "stack.h" struct Stack *init_stack() { struct Stack *init = (struct Stack *)malloc(sizeof(struct Stack)); init->length = 0; init->top = NULL; init->bottom = NULL; return init; } void push(struct Stack *s, BinTreeNode * data) { struct StackNode *node = (struct StackNode *)malloc(sizeof(...
#ifndef FILECIPHER_H #define FILECIPHER_H class FileCipher { public: FileCipher(); }; #endif // FILECIPHER_H
/* Copyright (c) 2013 - Philippe Laulheret, Second Story [http://www.secondstory.com] This code is protected under MIT license. For more information visit : https://github.com/secondstory/LYT */ #pragma once #ifndef _GLOBAL_H_ #define _GLOBAL_H_ #include <Adafruit_WS2801.h> #include <Ethernet.h> #include <E...
// This code contains NVIDIA Confidential Information and is disclosed to you // under a form of NVIDIA software license agreement provided separately to you. // // Notice // NVIDIA Corporation and its licensors retain all intellectual property and // proprietary rights in and to this software and related documentation...
/* * Copyright (C) 2013 Philippe Gerum <rpm@xenomai.org>. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version....
#ifndef pt_ifile_cache_h #define pt_ifile_cache_h #include "pt_idata_cache.h" pt_idata_cache* pt_open_file_cache(pt_icache_callback callback, const char* url); #endif
/* Author: Joe Rogers <joe@cromulence.com> Copyright (c) 2015 Cromulence LLC 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, ...
//---------------------------------------------------- // linbc 2014.11.28 // http://linbc.cnblogs.com/ // github: https://github.com/linbc/cocos2dx_xxtea_asset #include "xxtea.h" #include <stdio.h> #include <stdlib.h> #include <string.h> static const char *progname = __FILE__; char *optarg; /* a...
// @COPYRIGHT@ // Licensed under MIT license (LICENSE.txt) // clxx/cl/functions/create_program_with_binary.t.h /** // doc: clxx/cl/functions/create_program_with_binary.t.h {{{ * \file clxx/cl/functions/create_program_with_binary.t.h * \todo Write documentation */ // }}} #ifndef CLXX_CL_FUNCTIONS_CREATE_PROGRAM_WIT...
#include <MaxSLiCInterface.h> #include "Maxfiles.h" #include "common/common.h" #include "common/timer.h" #include "common/matrix.h" #include "common/matvec.h" void mat_transform_rowstripes_pipes(int n, int m, int s, int p, float * src, float * dst) { int d = 0; for (int i = 0; i < n; i += s) for (int j = 0; j < ...
FIS_TYPE fis_sum(FIS_TYPE a, FIS_TYPE b) { return (a + b); }
#ifndef SerialManager_UI_h #define SerialManager_UI_h #include <Arduino.h> //for String #include <TympanRemoteFormatter.h> //for TR_Page //#include "SerialManagerBase.h" #include <TympanRemoteFormatter.h> class SerialManagerBase; //forward declaration class SerialManager_UI { public: SerialManager_UI(void) {...
/* * Generated by class-dump 3.3.4 (64 bit). * * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by Steve Nygard. */ #import "NSObject.h" @interface DVTByteBuffer : NSObject { char *_bytes; unsigned long long _capacity; unsigned long long _length; unsigned long long _position; ...
// // TorBar.h // TorBarExample // #import <Foundation/Foundation.h> #import <TorServerKit/TorServerKit.h> #import <SystemInfoKit/SystemInfoKit.h> #import "NetworkMonitor.h" @interface TorBar : NSObject @property (strong) NSStatusItem *statusItem; @property (strong) NSMenu *menu; @property (strong) NSMenuItem *la...
#pragma once #include <stdint.h> #include <memory> #include "league.h" namespace tippbot { namespace model { class Matchday { public: Matchday(League *league, uint16_t day, uint16_t year) : id_(0), league_(league), day_(day), year_(year) { } inline League *league() const { return t...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE789_Uncontrolled_Mem_Alloc__malloc_wchar_t_connect_socket_22b.c Label Definition File: CWE789_Uncontrolled_Mem_Alloc__malloc.label.xml Template File: sources-sinks-22b.tmpl.c */ /* * @description * CWE: 789 Uncontrolled Memory Allocation * BadSource: connect_s...
#include <sys/time.h> #include <sys/resource.h> #define NumSearchPoints 5 #define FoundGoal 5 #define NumSearchPasses 2 #define Pass1 0 #define Pass2 1 #define DepthFirst 1 #define BreadthFirst 2 #define BranchAndBound 3 #define AveragePathCost 4 #define BestFirst 5 #define AStar 6 #define SQDIST(a,b,d)\ ...
#pragma once #include "Actor/Material/SurfaceMaterial.h" #include "Math/math_fwd.h" #include "FileIO/SDL/TCommandInterface.h" #include "Actor/Image/Image.h" #include "FileIO/FileSystem/Path.h" #include <memory> #include <vector> namespace ph { class ThinFilm : public SurfaceMaterial, public TCommandInterface<ThinFi...
/****************************************************************************** * Spine Runtime Software License - Version 1.1 * * Copyright (c) 2013, Esoteric Software * All rights reserved. * * Redistribution and use in source and binary forms in whole or in part, with * or without modification, are permitte...
/* Copyright (c) 2013 Nordic Semiconductor. All Rights Reserved. * * The information contained herein is property of Nordic Semiconductor ASA. * Terms and conditions of usage are described in detail in NORDIC * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT. * * Licensees are granted free, non-transferab...
#include <stdio.h> int main() { int a,b; scanf("%d %d",&a, &b); printf("%d\n",a+b); return 0; }
#pragma once #include <vector> #include <bitset> #include <iostream> void test(void); class CPPGroup { public: std::vector<short> gvec; int size_; //std::bitset<4096> _inset; CPPGroup() : size_(0) ///_inset(4096) { gvec.reserve(10); } ~CPPGroup() { ...
/* * Copyright (c) 2008, Willow Garage, Inc. * 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 copyright * notice, this l...
/************************************************************************* *** FORTE Library Element *** *** This file was generated using the 4DIAC FORTE Export Filter V1.0.x! *** *** Name: F_TIME_TO_BYTE *** Description: convert TIME to BYTE *** Version: *** 0.0: 2013-08-29/4DIAC-IDE - 4DIAC-Cons...
#pragma once #include "DDEClientConversation.h" /** * DDE Client Transaction Manager. * * @author Alexander Kozlov (alex@pretty-tools.com) */ class DDEClientTransactionManager { private: WJNIEnv m_env; DWORD m_idInst; CAtlMap<HCONV, DDEClientConversation*> m_mapHConvToDDEClient; public: DDEClie...
#include "misc.h" char errbuf[200]; char *progname; int wantwarn = 0; int dbg = 0; // dbg = 1 : dump slugs // dbg = 2 : dump ranges // dbg = 4 : report function entry // dbg = 8 : follow queue progress // dbg = 16: follow page fill progress
/******************************************************************************* * Copyright (c) 2012 4DIAC - consortium. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available...
/* * Android File Transfer for Linux: MTP client for android devices * Copyright (C) 2015 Vladimir Menshakov * 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 version 2 * of the Lic...
/* * Copyright (c) 2002, Intel Corporation. All rights reserved. * Created by: julie.n.fleischer REMOVE-THIS AT intel DOT com * This file is licensed under the GPL license. For the full content * of this license, see the COPYING file at the top level of this * source tree. * * Test to see if timer_settime() se...
#ifndef REGION_H # define REGION_H # include <kernel/types.h> # include <kernel/klist.h> # include <kernel/mem/as.h> struct region { vaddr_t base; uint32_t page_size; int mapped; struct klist list; }; /* * Initialize region inside an address space */ void region_initialize(struct as *as); /* ...
/* $Id$ */ /*© copyright 1991-96 UserLand Software, Inc. All Rights Reserved.*/ #include <ioa.h> #include <appletstrings.h> #define textvertinset 2 static boolean cleangizmo (hdlobject h, short height, short width, Rect *r) { hdlcard hc = (**h).owningcard; short gridunits = (**hc).gridunits; width = IO...
#include "tree.h" #include "gc.h" #include "gc-internal.h" static int gc_inhibited = 0; static size_t alloc_array_sz = 10000; static size_t alloc_ptr = 0; static gc_obj *allocs = NULL; static const int COLLECT_TREE_ALLOC = 2000; void mark_tree(tree obj) { if (!obj) return; tree locus_file = obj->locu...
/* ---------------------------------------------------------------------- * * *** Smooth Mach Dynamics *** * * This file is part of the USER-SMD package for LAMMPS. * Copyright (2014) Georg C. Ganzenmueller, georg.ganzenmueller@emi.fhg.de * Fraunhofer Ernst-Mach Institute for High-Speed Dynamic...
//********************************************************************************* // Movie.h //--------------------------------------------------------------------------------- // //--------------------------------------------------------------------------------- // Hugo Mercier <hmerci...
/* * CREATED BY Lucas Vieira Costa Nicolau - USP * Used amoung with SDL2 * -- (good tutorial tip : SDL LAZY FOO --there's other, but this was the most * used by me on learning) * * -- Open Source, Open to learn, Open to distribute. * Just don't misrepresent my credits and time spend to make this library. Thanks. */...
#pragma once class Money : public Item { public: explicit Money(long amount) : amount_(amount) { } virtual thisItemIs whatIsThis() const { return THIS_IS_MONEY; } virtual Money* clone() const { return new Money(*this); } explicit Money(const std::string& inputXml); string showXml() const; virtual string ...