text stringlengths 4 6.14k |
|---|
#include <stdio.h>
#include <stdlib.h>
int main()
{
int over,chislo,temp,i=0,counter,chisloto_org;
char hex[20];
scanf("%d",&chislo);
chisloto_org=chislo;
do{
chislo=chisloto_org;
i=0;
while(chislo!=0){
temp=chislo%16;
switch(temp){
case 0:
hex[i]='0';
break;
case 1:
hex[i]='1';
b... |
#ifndef OPERADOR_H
#define OPERADOR_H
#include <string>
#include <iostream>
#include "excepciones\EMalformedBlockError.h"
// Operandos
#include "Operando.h"
#include "operandos\OpEntero.h"
#include "operandos\OpFlotante.h"
#include "operandos\OpCadena.h"
#include "operandos\OpBooleano.h"
/// Clase base para los ope... |
#ifndef SCENENODEQUEUE_H
#define SCENENODEQUEUE_H
#include "../../SDK/SceneGraph/SceneNodeBase.h"
#include "../../SDK/Platform.h"
#include <vector>
#include <set>
namespace Scene
{
class SceneNodeQueue
{
public:
/// <summary>Конструктор класса.</summary>
SceneNodeQueue(void);
/// <summary>Деструктор класс... |
// Copyright 2011 __MyCompanyName__. All rights reserved.
//
#import "cocos2d.h"
//#import "gameEnd.h"
#import "labelSelection.h"
#import "menuPage.h"
#import "HelloWorldScene.h"
#import "HUDsound.h"
#import "labelSelection.h"
#import "about.h"
#import "tutorial.h"
#import "insPage.h"
//#import "SimpleAudioEngine.h"
... |
/*
* Physical memory allocation
* Copyright (c) 2001,2003,2004 David H. Hovemeyer <daveho@cs.umd.edu>
* Copyright (c) 2003, Jeffrey K. Hollingsworth <hollings@cs.umd.edu>
* $Revision: 1.36 $
*
* This is free software. You are permitted to use,
* redistribute, and modify it as specified in the file "COPYING".
... |
#pragma once
#include "Hero.h"
class Monk : public Hero
{
public:
Monk() = default;
Monk(int idx);
~Monk() override = default;
}; |
/*
Video Core
Copyright (c) 2014 James G. Hurley
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, modify, merge, pu... |
#define printable(a) (((a) >= 32 && (a) <= 126) || (a) == '\t' || (a) == '\n')
#define MAX_PROCESSES 100
#define MAX_BURSTS 1000
#define MAX_TOKEN_LENGTH 30
#define MAX_LINE_LENGTH (1<<16)
#define NUMBER_OF_PROCESSORS 4
#define NUMBER_OF_LEVELS 3
#define COMMENT_CHAR '#'
#define COMMENT_LINE -1
typedef struct burst{... |
//
// R9HTTPRequest.h
// R9HTTPRequest
//
// Created by taisuke fujita on 2017/10/03.
// Copyright © 2017年 Revolution9. All rights reserved.
//
#import <UIKit/UIKit.h>
//! Project version number for R9HTTPRequest.
FOUNDATION_EXPORT double R9HTTPRequestVersionNumber;
//! Project version string for R9HTTPRequest.
... |
//
// DoneItemGroup.h
// EasyTodo
//
// Created by pwnlc on 16/9/18.
// Copyright © 2016年 xyz.pwnlc. All rights reserved.
//
#import <Foundation/Foundation.h>
/**
已完成 item group 类。
*/
@interface DoneItemGroup : NSObject
/**
items 完成的日期。
*/
@property (nonatomic, copy) NSString *finishTime;
/**
日期内完成的 items ... |
//
// WKInterfaceObject+IRLSize.h
// IRLSize
//
// Created by Jeff Kelley on 6/29/2016.
// Copyright © 2019 Detroit Labs. All rights reserved.
//
#import <WatchKit/WatchKit.h>
#import "IRLSize.h"
NS_ASSUME_NONNULL_BEGIN
@interface WKInterfaceObject (IRLSize)
/**
Sets the physical width of the interface object... |
/**
* \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 ... |
#ifndef OBJECT_MANAGER_H_
#define OBJECT_MANAGER_H_
#include <string>
#include <vector>
#include "game.h"
// TODO: Refactor/rename Object, ObjectManager, Background, Tile, Item, LevelObject, ...
class ObjectManager
{
public:
ObjectManager()
: backgrounds_(),
tiles_(),
items_()
{
}
bool load... |
/********************************************************************************
** Form generated from reading UI file 'mainwindow.ui'
**
** Created by: Qt User Interface Compiler version 5.0.2
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
****************************************... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int grand(int min,int max) {
int n;
n = rand();
n = n % max;
n = n + min;
return n;
}
int main(int argc,char** argv) {
int i,j,number_jobs,min_lim,max_lim,n;
if(argc != 4) {
printf("Command pattern: command \"NUMBER_OF_JOBS\" \"MIN_LIMIT\" \"MAX_LIMI... |
//
// UIImage+Addition.h
// WGKitDemo
//
// Created by dfhb@rdd on 16/11/25.
// Copyright © 2016年 guojunwei. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface UIImage (Addition)
/** 返回一张自由拉伸的图片(以中心点延伸) */
+ (UIImage *)wg_resizedImageWithName:(NSString *)name;
/** 返回一张自由拉伸的图片(以中心点延伸) */
- (UIImage *)wg_re... |
C $Header$
C
C /==========================================================\
C | SIZE.h Declare size of underlying computational grid. |
C |==========================================================|
C | The design here support a three-dimensional model grid |
C | with indices I,J and K. The thr... |
//
// 2017-05-08, jjuiddong
// shader macro define
//
#pragma once
#define SHADER_SETFLOAT_MACRO(funcname, key, handle)\
D3DXHANDLE handle=NULL;\
void funcname(const float &val)\
{\
RET(!m_effect);\
if (!handle)\
handle = m_effect->GetParameterByName(NULL, key);\
if (FAILED(m_effect->SetFloat(handle, val)... |
#import <MapKit/MapKit.h>
#pragma mark -
@interface MKMapView (Zoom)
@property (assign, nonatomic) NSUInteger zoomLevel;
- (void)setCenterCoordinate:(CLLocationCoordinate2D)centerCoordinate
zoomLevel:(NSUInteger)zoomLevel
animated:(BOOL)animated;
@end
|
#ifndef INVENTORY_H
#define INVENTORY_H
#include <stdbool.h>
#include "item.h"
#include "list.h"
struct inventory {
unsigned int size;
unsigned int capacity;
struct list contents;
};
void inventory_init(struct inventory *inventory);
bool inventory_add(struct inventory *inventory, struct item *item);
stru... |
#include <stdlib.h>
#include "tick.h"
#include "hw_config.h"
#include "typedef.h"
static volatile U32 internalTicks;
#define TICK__DisableInt() NVIC_Config(SysTick_IRQn, TICK_PRIORITY, DISABLE);
#define TICK__EnableInt() NVIC_Config(SysTick_IRQn, TICK_PRIORITY, ENABLE);
typedef struct _TICK{
struct _TICK* next;
... |
#ifndef TOOLPASS_SERVER_h
#define TOOLPASS_SERVER_h
#include "ESP8266_Simple.h"
#include <SoftwareSerial.h>
class ToolpassServer {
public:
ToolpassServer(short rxPin, short txPin, const char *SSID, const char *Password, Print *debugPrinter, int tool_id);
~ToolpassServer();
void Test();
bool ToolOn(char *user... |
//
// ATBlueoothTool.h
// ATBluetooth
//
// Created by 敖然 on 15/12/23.
// Copyright © 2015年 AT. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <CoreBluetooth/CoreBluetooth.h>
@interface ATBlueoothTool : NSObject
+ (NSString *)properties:(CBCharacteristicProperties)properties separator:(NSStrin... |
//
// YTKBatchRequest.h
//
// Copyright (c) 2012-2014 YTKNetwork https://github.com/yuantiku
//
// 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 with... |
#include <stdbool.h>
#include <stdio.h>
#include "validator.h"
bool validateRange(Validator* pThis, int val) {
RangeValidator* p = (RangeValidator*)pThis;
return p->min <= val && val <= p->max;
}
bool validatePrevious(Validator* pThis, int val) {
PreviousValueValidator* p = (PreviousValueValidator*)pThis... |
/*
// whatis.h
//
// Author: Pale Purple
// Created: 2016. 02. 18.
// Copyright (c) 2016 Pale Purple. All rights reserved.
//
// Get short description by using `whatis` shell command for default desc when
// adding new command.
*/
#ifndef _WHATIS_H
#define _WHATIS_H
#define WHATIS_SHELL_COMMAND "comman... |
static const bool kDefaultEnabled = 1;
static const int kDefaultNumPRIs = 15;
static const int kDefaultNumGates = 9;
static const double kDefaultThreshold = 0.7;
|
struct file {
enum { FD_NONE, FD_PIPE, FD_INODE } type;
int ref; // reference count
char readable;
char writable;
struct pipe *pipe;
struct inode *ip;
uint off;
};
// in-memory copy of an inode
struct inode {
uint dev; // Device number
... |
// Copyright (C) 2009-2013 Mischa Sandberg <mischasan@gmail.com>
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License Version 2 as
// published by the Free Software Foundation. You may not use, modify or
// distribute this program under any ... |
//*==---------------------------* Obj-C *--------------------------------===//
//
// THIS FILE IS GENERATED BY INVAR. DO NOT EDIT !!!
//
//===----------------------------------------------------------------------==*//
#ifndef TESTDBMEMBERENTRY_H_
#define TESTDBMEMBERENTRY_H_
#import <Foundation/NSDictio... |
/*****************************************************************************
The MIT License(MIT)
Copyright(c) 2016 Amr Essam
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,... |
#pragma once
#include <string>
class Console
{
public:
Console();
~Console();
void init();
//IInputReceiver
//bool onInput(SDL_Event* e);
static Console* console;
bool visible;
bool showCursor;
std::string cmd;
std::string buff;
};
|
// Copyright (c) 2014 The VeriCoin developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_QT_SCICON_H
#define BITCOIN_QT_SCICON_H
#include <QtCore>
QT_BEGIN_NAMESPACE
class QColor;
class QIcon;
class QStrin... |
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <assert.h>
int main (int argc, const char* argv []) {
// char * my_string = "Hello\0 World";
char my_string[4];
my_string[0] = 'H';
my_string[1] = 'E';
my_string[2] = 'L';
my_string[3] = 'O';
// printf("%d\n", my_string[11]);
printf("%s... |
//
// AppDelegate.h
// CAGradientLayer
//
// Created by ShenYj on 2017/2/13.
// Copyright © 2017年 ShenYj. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface AppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end
|
#ifndef _DEFFERED_H_
#define _DEFFERED_H_
#include "tiny_obj_loader.h"
#include "Application.h"
#include "FlyCam.h"
#include <vector>
#include <string>
struct OpenGLInfo
{
unsigned int m_VAO;
unsigned int m_VBO;
unsigned int m_IBO;
unsigned int m_IndexCount;
};
class Deffered : public Application
{
public:
vi... |
//
// AAColorView.h
// ArtStuff
//
// Created by Kyle Oba on 10/4/13.
// Copyright (c) 2013 Kyle Oba. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface AAColorView : UIView
@end
|
/*
* nodered.c
*
* Created on: 2 déc. 2019
* Author: bdosd
*/
//http://homecontrol:1880/mqtt?topic=
#define MQTT_BROKER "http://emonpi:1880/"
int nodered_publish(char* topic, char* value)
{
char cmdline[1024];
sprintf(cmdline, "wget -q -O temp.mqtt \"%smqtt?topic=%s&payload=%s\"",MQTT_BR... |
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@interface DeviceIconView : UIView
#pragma mark Methods
@property(nonatomic, strong) CALayer *backgroundLayer;
- (void)initView;
- (void)createSublayers;
- (void)recreateSublayers;
- (void)removeSublayers;
- (void)createSubviews;
- (void)resizeSubviews... |
#include "gui.h"
#include "graphics.h"
#include "heap.h"
#include "kstdio.h"
window_t g_window_list;
void gui_init()
{
LIST_INIT(g_window_list.list);
}
void gui_background_render()
{
//fillrect(0,0,screen_width,screen_height,rgb(255,255,255));
}
void gui_print()
{
}
void gui_update()
{
window_t* win;
LIST_FO... |
#ifndef CGnuPlotSamples_H
#define CGnuPlotSamples_H
class CGnuPlotSamples {
public:
CGnuPlotSamples() { }
void get(int &s1, int &s2) const { s1 = samples1_; s2 = samples2_; }
void set(int s1, int s2) { samples1_ = s1; samples2_ = s2; }
void unset() { set(100, 100); }
void save(std::ostream &os) const {
... |
/*******************************************************************************
*
* This file is part of the AEON Framework.
*
* -----------------------------------------------------------------------------
* Copyright (C) 2012- The Aeon Development Team.
*
* See LICENSE.txt for licensing details.
*
*******... |
/**
* parent.h 2014-05-03 15:06:28
* anonymouse(anonymouse@email)
*
* Copyright (C) 2000-2014 All Right Reserved
*
* THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
* KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNE... |
#include "MonoProcess.h"
using namespace System;
using namespace System::Diagnostics;
using namespace System::Runtime::InteropServices;
namespace MInject {
public ref class MonoProcess
{
public:
//Domain
IntPtr GetRootDomain();
//Assembly
IntPtr AssemblyLoadFromFull(IntPtr p_ImageAddress);
IntPtr Assem... |
//
// PayPalFuturePaymentViewController.h
//
// Version 2.6.1
//
// Copyright (c) 2014, PayPal
// All rights reserved.
//
#import <UIKit/UIKit.h>
#import "PayPalConfiguration.h"
@class PayPalFuturePaymentViewController;
typedef void (^PayPalFuturePaymentDelegateCompletionBlock)(void);
#pragma mark - PayPalFuture... |
#ifndef CBrowserVideo_H
#define CBrowserVideo_H
#include <CBrowserObject.h>
#include <CBrowserData.h>
class CBrowserVideo : public CBrowserObject {
public:
explicit CBrowserVideo(CBrowserWindow *window);
void setNameValue(const std::string &name, const std::string &value) override;
};
#endif
|
#ifndef ONCE_MODEL_H
#define ONCE_MODEL_H
class Model {
private:
int rank;
int mpi_size;
public:
Model(int rank, int size);
int result();
};
#endif // ONCE_MODEL_H
|
#pragma once
#include "Cpp/Warnings.h"
#include "Cpp/Fundamental.h"
INTRA_PUSH_DISABLE_REDUNDANT_WARNINGS
namespace Intra { namespace Audio {
struct MusicNote
{
enum Type: byte {C, CSharp, D, DSharp, E, F, FSharp, G, GSharp, A, ASharp, B};
//Таблица соответствия нот субконтроктавы частотам
static const float B... |
// Copyright (c) 2015 fjz13. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
#pragma once
#include "MedusaCorePreDeclares.h"
#include "Core/Coder/ICoder.h"
MEDUSA_BEGIN;
class Base64Encoder :public ICoder
{
public:
Base64Encoder() = default... |
//
// Base64Util.h
// ThuInfo
//
// Created by WenHao on 12-10-30.
// Copyright (c) 2012年 WenHao. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "GTMBase64.h"
@interface Base64Util : NSObject
+ (NSString*)encodeBase64:(NSString*)input;
+ (NSString*)decodeBase64:(NSString*)input;
@end
|
#pragma once
#include <QVector>
#include "BufferInterface.h"
#include "Maze.h"
#include "MazeGraphic.h"
#include "TriangleGraphic.h"
#include "TriangleTexture.h"
namespace mms {
class MazeView {
public:
MazeView(const Maze* maze, bool isTruthView);
MazeGraphic* getMazeGraphic();
void initTileGraphicTe... |
//
// FlickrAccount.h
// OnlineImagePicker
//
// Created by David Gileadi on 10/6/14.
// Copyright (c) 2014 David Gileadi. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "OnlineImageAccount.h"
/**
* Supports user authentication for Flickr.
*/
@interface FlickrAccount : NSObject<OnlineImageAcc... |
#ifndef __CA__RECTANGLE_H__
#define __CA__RECTANGLE_H__
#include "BasicDeclaration.h"
BEGIN_NAMESPACE_CA_DRAWING
template <typename T>
class RectangleT
{
public:
RectangleT();
RectangleT(const T& x, const T& y,
const T& width, const T& height);
RectangleT(const PointT<T>& location,
const SizeT<T>& size);... |
/***************************************************************
* Name: Core.h
* Purpose: Defines Node-CEF Core Class
* Author: Joshua GPBeta (studiocghibli@gmail.com)
* Created: 2016-05-24
* Copyright: Studio GPBeta (www.gpbeta.com)
* License:
**********************************************... |
//
// JSZVCRPlayerDelegate.h
// Pods
//
// Created by Jordan Zucker on 1/11/16.
//
//
#ifndef JSZVCRPlayerDelegate_h
#define JSZVCRPlayerDelegate_h
/**
* This is for relaying testing state during a run
*/
@protocol JSZVCRPlayerDelegate <NSObject>
#if JSZTESTING
/**
* This provides an update if a testCase enc... |
/**
* B1 Computer Emulator
* (c) 2014-2015 Michał Siejak
*/
#ifndef CPU_H
#define CPU_H
#include "common.h"
#include "mcc.h"
#include "vpu.h"
#include "spu.h"
#include "keyboard.h"
// Memory reference
struct Ref
{
U16 A;
U8 V;
operator U8() const { return V; }
Ref& operator=(const U8 InV) { V=In... |
#ifndef __SUPPORT_CCPROFILING_H__
#define __SUPPORT_CCPROFILING_H__
/// @cond DO_NOT_SHOW
#include <string>
#include <chrono>
#include "ccConfig.h"
#include "basics/CAObject.h"
#include "platform/platform.h"
#include "basics/CASTLContainer.h"
NS_CC_BEGIN
/**
* @addtogroup global
* @{
*/
class CAProfilingTimer;... |
//
// ViewController.h
// TagManager
//
// Created by johnny on 15/11/27.
// Copyright © 2015年 ftxbird. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface ViewController : UIViewController
@end
|
#ifndef MISSILEGENERIC_H_
#define MISSILEGENERIC_H_
#include "unit_generic.h"
class MissileEffect
{
Vector pos;
float damage;
float phasedamage;
float radius;
float radialmultiplier;
void *ownerDoNotDereference;
public:
void ApplyDamage( Unit* );
MissileEffect( const Vector &pos, f... |
// This code is part of the Super Play Library (http://www.superplay.info),
// and may only be used under the terms contained in the LICENSE file,
// included with the Super Play Library.
//
// THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
// KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING B... |
#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
#import "HaloObjC.h"
FOUNDATION_EXPORT double HaloObjCVersionNumber;
FOUNDATION_EXPORT const unsigned char HaloObjCVersionSt... |
/*
* file StringUtils.h
*
* author luoxw
* date 2017/09/15
*
*
*/
#pragma once
FORCEINLINE wstring UTF8ToWide(const string &utf8)
{
if (utf8.length() == 0) {
return wstring();
}
// compute the length of the buffer we'll need
int count = MultiByteToWideChar(CP_UTF8, 0, utf8.c_str(), -1, NULL, 0);
if... |
/*
Copyright (c) 2014 Stephen Stair (sgstair@akkit.org)
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, modify, merge,... |
//
// FacialGestureAggregator.h
// Pods
//
// Created by Tran Le on 02/03/15.
//
//
#import <Foundation/Foundation.h>
#import "FCFacialGesture.h"
@protocol FCFacialGestureAggregatorDelegate <NSObject>
-(void)didUpdateProgress:(FCFacialGesture *)gesture;
@end
@interface FCFacialGestureAggregator : NSObject
@pro... |
//
// STPPaymentConfiguration.h
// Stripe
//
// Created by Jack Flintermann on 5/18/16.
// Copyright © 2016 Stripe, Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "STPBackendAPIAdapter.h"
#import "STPPaymentMethod.h"
#import "STPTheme.h"
NS_ASSUME_NONNULL_BEGIN
@interface STPPaymentConfig... |
// Temporary shim to keep a couple dependencies working in Chromium.
#ifndef SkOrderedReadBuffer_DEFINED
# define SkOrderedReadBuffer_DEFINED
# include "src/core/SkReadBuffer.h"
typedef SkReadBuffer SkOrderedReadBuffer;
#endif
|
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE78_OS_Command_Injection__wchar_t_file_w32_spawnvp_63a.c
Label Definition File: CWE78_OS_Command_Injection.strings.label.xml
Template File: sources-sink-63a.tmpl.c
*/
/*
* @description
* CWE: 78 OS Command Injection
* BadSource: file Read input from a file
* ... |
//
// XibView.h
// IHakulaShare
//
// Created by Wayde Sun on 1/31/15.
// Copyright (c) 2015 IHakula. All rights reserved.
#import <UIKit/UIKit.h>
@interface XibViewUtils : NSObject
+ (id)loadViewFromXibNamed:(NSString*)xibName withFileOwner:(id)fileOwner;
// the view must not have any connecting to the file o... |
/* Algorithm by Donald Knuth. */
#include <stdio.h>
#include <stdlib.h>
void main( void)
{
int i, j=1, k, n, *c, x;
printf( "Enter n,k: ");
scanf( "%d,%d", &n, &k);
c = malloc( (k+3) * sizeof(int));
for (i=1; i <= k; i++) c[i] = i;
c[k+1] = n+1;
c[k+2] = 0;
j = k;
visit:
for (i=k; i >= 1; i--) printf( "%3... |
//
// MyRelativeLayout.h
// MyLayout
//
// Created by oybq on 15/7/1.
// Copyright (c) 2015年 YoungSoft. All rights reserved.
//
#import "MyBaseLayout.h"
/**
*相对布局是一种里面的子视图通过相互之间的约束和依赖来进行布局和定位的布局视图。
*相对布局里面的子视图的布局位置和添加的顺序无关,而是通过设置子视图的相对依赖关系来进行定位和布局的。
*相对布局提供了和AutoLayout相似的能力。
*/
@interface MyRelativeLayout :... |
/*
* romanError.h
*
* Created on: Oct 1, 2016
* Author: brad
*/
#ifndef ROMANERROR_H_
#define ROMANERROR_H_
void showBadCharMessage(char value);
void showBadNumeralPairMessage(char a, char b);
void showBadNumeralStringMessage(char* value);
void showTermExceedsMaximumValueMessage(char* value);//single term
... |
//
// LoginInViewController.h
// RongChatRoomDemo
//
// Created by 弘鼎 on 2017/8/8.
// Copyright © 2017年 rongcloud. All rights reserved.
//
#import <UIKit/UIKit.h>
typedef void(^RegistBlock)();
@interface LoginInViewController : UIViewController
@property (nonatomic,copy) RegistBlock myRegistblock;
@end
|
#include <stdio.h>
#include <stdlib.h>
#define MIN_ALLOC_SIZE 24
#define MAX_ALLOC_SIZE 1024 * 100
#define CHANCE_OF_FREE 95
#define CHANCE_OF_REALLOC 50
#define TOTAL_ALLOCS 400000
int main()
{
malloc(1);
int i;
void *realloc_ptr = NULL;
void **dictionary = malloc(TOTAL_ALLOCS * sizeof(void *));
... |
/*
* Copyright (C) 1999 Lars Knoll (knoll@kde.org)
* (C) 1999 Antti Koivisto (koivisto@kde.org)
* Copyright (C) 2010 Apple Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by ... |
#ifndef SPRITENODE_H
#define SPRITENODE_H
#include <SFML/Graphics.hpp>
#include <SFGE/Core/ResourceManager.h>
#include <SFGE/Core/Node.h>
namespace sfge
{
class SpriteNode : public Node, public sf::Sprite
{
public:
SpriteNode(const std::string& name = "Sprite");
Sp... |
//
// DDDDChatUtilityViewController.h
// Emoji
//
// Created by YiLiFILM on 14/12/13.
// Copyright (c) 2014年 YiLiFILM. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "AQGridView.h"
@protocol ChatUtilityViewControllerDelegate <NSObject>
@end
@interface ChatUtilityViewController : UIViewController<UIImag... |
//
// AYAMidiToMarkovCalc.h
// MarkovChain
//
// Created by Andrew Ayers on 4/25/14.
// Copyright (c) 2014 AyersAudio. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "AYAMidiParser.h"
@interface AYAMidiToMarkovCalc : NSObject
+(NSMutableDictionary *)calcProbabilityForFile:(NSString *)filename;... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE78_OS_Command_Injection__char_file_w32_spawnv_65b.c
Label Definition File: CWE78_OS_Command_Injection.strings.label.xml
Template File: sources-sink-65b.tmpl.c
*/
/*
* @description
* CWE: 78 OS Command Injection
* BadSource: file Read input from a file
* Good... |
//
// PRSummary.h
// PlacesAndRouting
//
// Created by Sascha Müllner on 19.03.16.
// Copyright © 2016 smuellner. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface PRSummary : NSObject
@property NSInteger distance;
@property NSInteger trafficTime;
@property NSInteger baseTime;
@property NSArray... |
//
// JSCBasePlugin.h
// JSCoreBridgeDemo
//
// Created by iPhuan on 2017/2/14.
// Copyright © 2017年 iPhuan. All rights reserved.
//
#import "JSCPlugin.h"
typedef NS_ENUM(NSUInteger, JSCParamsErrorType) {
JSCParamsErrorTypeNone = 0,
JSCParamsErrorTypeNoParameters,
JSCParamsErrorTypeInvalidFormat,
... |
//
// Created by greystone on 15-11-5.
//
#ifndef DB_DB_GLOBAL_H
#define DB_DB_GLOBAL_H
#include "db/db_buffer.h"
namespace db {
extern db::Buffer BufferDelegate;
} // namespace db
#endif // DB_DB_GLOBAL_H
|
/*
* Author: doe300
*
* See the file "LICENSE" for the full license governing this code.
*/
#ifndef VC4C_CACHE_ENTRY_H
#define VC4C_CACHE_ENTRY_H
#include "../Optional.h"
#include "../Types.h"
#include "../tools/SmallSet.h"
#include <string>
namespace vc4c
{
namespace intermediate
{
struct Memor... |
//
// Copyright (c) 2016 Vinodh Kumar M. <GreenHex@gmail.com>
//
#pragma once
// int rand_digit_order[ NUM_DIGITS ] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 };
void randomize ( int arr[], int n );
|
/*
* Phusion Passenger - https://www.phusionpassenger.com/
* Copyright (c) 2011-2015 Phusion Holding B.V.
*
* "Passenger", "Phusion Passenger" and "Union Station" are registered
* trademarks of Phusion Holding B.V.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this ... |
// This file is part of byfly-wifi-auth. For the copyright and license information, please view the LICENSE file that was distributed with this source code.
#include <curl/curl.h>
int main ()
{
curl_global_init ( CURL_GLOBAL_DEFAULT );
CURL * curl = curl_easy_init ();
if ( curl == NULL ) {
curl_e... |
#pragma once
/**
Utils for driving a WS2812 (WS2812B) RGB LED strips.
It's implemented as macros to avoid overhead when passing values, and to
enable driving multiple strips at once.
To avoid bloating your code, try to reduce the number of invocations -
compute color and then send it.
[IMPORTANT]
Som... |
/*
* gui.h
*
* Created on: Aug 25, 2015
* Author: jasonr
*/
#pragma once
#ifndef SRC_TESTS_APITEST_COMMON_GUI_H_
#define SRC_TESTS_APITEST_COMMON_GUI_H_
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <memory>
#include <vector>
#include <SDL.h>
#include "context.h"
#include "renderThreadBase.h... |
//
// TBTableViewController.h
// Pods
//
// Created by Tanner on 2/11/16.
//
//
#import <UIKit/UIKit.h>
typedef void(^VoidBlock)();
NS_ASSUME_NONNULL_BEGIN
/// This class functions as its table view's delegate and data source. Changing either of those will
/// defeat the purpose of this class and render most of t... |
// Created by «FULLUSERNAME» on «DATE».
// 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, modify, merge, p... |
//
// NSTimer+PPDBLHelper.h
// Pods
//
// Created by wanyakun on 2017/3/27.
//
//
#import <Foundation/Foundation.h>
@interface NSTimer (PPDBLHelper)
+ (NSTimer *)scheduledTimerWithTimeInterval:(NSTimeInterval)interval
block:(void(^)())block
... |
//
// RootViewController.h
// tapat
//
// Created by 吴 wuziqi on 10-11-15.
// Copyright 2010 同济大学. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <GameKit/GameKit.h>
#import "GameConfig.h"
#import "GameCenterManager.h"
@interface RootViewController : UIViewController<GameCenterManagerDelegate> {
}
... |
// MusicXML Class Library
// Copyright (c) by Matthew James Briggs
// Distributed under the MIT License
#pragma once
#include "mx/core/ForwardDeclare.h"
#include "mx/core/AttributesInterface.h"
#include "mx/core/CommaSeparatedText.h"
#include "mx/core/Decimals.h"
#include "mx/core/Enums.h"
#include "mx/core/FontSize.... |
#pragma once
#include <atomic> // for std::atomic, atomic_thread_fence
#include <stddef.h>
#include "global_gc.h"
#include "gc_class_base.h"
#include "local_config.h" // for local_config
struct participant {
participant *next;
std::atomic<size_t> active;
local_config conf;
inline void enter(GCClassB... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define MAXIMUM_WORD_SIZE 64
#define MAXIMUM_LINE_SIZE 128
int main(int argc, char* argv[])
{
if (argc != 3)
{
printf("cmt: No file names given\n");
exit(EXIT_FAILURE);
}
FILE *inputfile;
if ((inputfile = fopen(argv[1], "... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE78_OS_Command_Injection__char_console_w32_execvp_12.c
Label Definition File: CWE78_OS_Command_Injection.strings.label.xml
Template File: sources-sink-12.tmpl.c
*/
/*
* @description
* CWE: 78 OS Command Injection
* BadSource: console Read input from the console... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE78_OS_Command_Injection__wchar_t_environment_w32_execvp_22a.c
Label Definition File: CWE78_OS_Command_Injection.strings.label.xml
Template File: sources-sink-22a.tmpl.c
*/
/*
* @description
* CWE: 78 OS Command Injection
* BadSource: environment Read input fro... |
#pragma once
#include "PyObject.h"
#include <string>
namespace PyExt::Remote {
/// Represents an object of type NoneType. The most boring of the Python types.
class PYEXT_PUBLIC PyNoneObject : public PyObject
{
public: // Construction/Destruction.
explicit PyNoneObject(Offset objectAddress);
public: // Memb... |
//
// PDFRCTableViewController.h
// PDStrategy
//
// Created by Pavel Deminov on 22/10/2017.
//
#import "PDTableViewController.h"
@import CoreData;
@interface PDFRCTableViewController : PDTableViewController <NSFetchedResultsControllerDelegate>
@property (nonatomic, strong) NSFetchedResultsController *frc;
- (vo... |
#ifndef CLIENTS_H_
#define CLIENTS_H_
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "globals.h"
/* Inicialitza el stock inicial de la botiga
* Utilitceu aquest funció per carregar els exemples
**/
void inicialitzaClientsExemple(int exemple, client clients[C]);
/* Inicialitza els clients de la... |
#include <unistd.h>
#include <sys/types.h>
#include <stdio.h>
#include <pthread.h> //include library to handle threads
void *Print(){
pthread_t t1 = pthread_self();
printf("Thread: %u\n", (unsigned int) t1);
pthread_exit(NULL);
}
int main(){
pthread_t thread1;
pthread_create(&thread1,NULL,Print,NULL);
pthread_... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.