text stringlengths 4 6.14k |
|---|
// 编写程序确定计算机执行的是算术右移还是逻辑右移
#include <stdio.h>
int main(void){
signed int w1 = -1 % 32;
signed int flag;
printf("%x\n", w1);
w1 >>= 1;
printf("%x\n", w1);
flag = w1 >> 31;
if(flag == -1)
printf("SAR\n"); // 算术右移
else
printf("SHR\n"); // 逻辑右移
return 0;
}
|
//
// WXZLouPanInformationControllerCell_0_1.h
// rufangrongke
//
// Created by 儒房融科 on 15/11/9.
// Copyright © 2015年 王晓植. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "WXZLouPanInformationControllerModel.h"
@interface WXZLouPanInformationControllerCell_0_1 : UITableViewCell
/* model */
@property (nona... |
/**
* \file Transformation.h
* \brief A transformation node to be used to appy a transformation to the sub-tree (composite node).
*
* \author Volker Ahlers\n
* volker.ahlers@hs-hannover.de
*/
/*
* Copyright 2014-2019 Volker Ahlers
*
* Licensed under the Apache License, Version 2.0 (the "Lic... |
//
// This is a sample General preference pane
//
#import "MASPreferencesViewController.h"
#import "BrowserHelper.h"
#import "NSAlert+SynchronousSheet.h"
@interface AdvancedPreferencesViewController : NSViewController <MASPreferencesViewController> {
}
@property (unsafe_unretained) IBOutlet NSButton *ignoreEarlyHigh... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
/*
* File: IAS-QSystemLib/src/qs/lang/ec/ModuleProxy.h
*
* Copyright (C) 2015, Albert Krzymowski
*
* 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... |
/*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fil... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define MAXCHAR 1000
#define max(a,b) ((a)>(b)?(a):(b))
int strStr(char* mother ,char* son){
int n=strlen(mother);
int m=strlen(son);
int cnt=0;
for(int i=0;i<=n-m;i++){
for(int j=0;j<m-1;j++){
if(mother[i+j]!=son[j]) {
cnt=0;
break;
}else c... |
//
// DCBeautyMessageViewController.h
// CDDStoreDemo
//
// Created by 陈甸甸 on 2017/12/21.
//Copyright © 2017年 RocketsChen. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface DCBeautyMessageViewController : UIViewController
@end
|
//
// Generated by the J2ObjC translator. DO NOT EDIT!
// source: /Volumes/Personal/Documents/raspi-config/client-framework/build/j2oSources/com/google/common/collect/RegularImmutableBiMap.java
//
#include "J2ObjC_header.h"
#pragma push_macro("INCLUDE_ALL_ComGoogleCommonCollectRegularImmutableBiMap")
#ifdef RESTRI... |
#ifndef _PRNTUTLS_H_
#define _PRNTUTLS_H_
#include "errs.h"
/**
* Print a string and append a new line
*/
static void printn(char *msg) {
printf("%s\n", msg);
}
/**
* Show an error for no memory (redirects to cnative_err_no_memory and
* returns 1
*/
static int8_t nomemory() {
cnative_err_no_memory();
... |
/*=========================================================================
Program: GDCM (Grassroots DICOM). A DICOM library
Copyright (c) 2006-2011 Mathieu Malaterre
All rights reserved.
See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
This software is distributed WITHOUT A... |
/*
* POK header
*
* The following file is a part of the POK project. Any modification should
* made according to the POK licence. You CANNOT use this file or a part of
* this file is this part of a file for your own project
*
* For more information on the POK licence, please see ou... |
/**
* Copyright (c) 2016, Codrin-Victor Poienaru <cvpoienaru@gmail.com>.
* All rights reserved.
*
* 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 retain the above copyrigh... |
//////////////////////////////////////////////////////////////////////////////
// NOTICE:
//
// ADLib, Prop and their related set of tools and documentation are in the
// public domain. The author(s) of this software reserve no copyrights on
// the source code and any code generated using the tools. You are encourag... |
//
// U13ActionQueue.h
// U13Actions
//
// Created by Brane on 13-03-19.
// Copyright (c) 2013 Universe 13. All rights reserved.
//
#import <Foundation/Foundation.h>
@class U13Action;
@interface U13ActionQueue : NSObject {
NSOperationQueue *queue_;
NSMutableDictionary *throttles_;
}
@property (readonly)... |
/*-------------------------------------------------------------------------
*
* standby.h
* Definitions for hot standby mode.
*
*
* Portions Copyright (c) 1996-2011, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* src/include/storage/sta... |
#ifndef __MONO_NATIVE_MSCORLIB_SYSTEM_THREADING_LAZYTHREADSAFETYMODE_H
#define __MONO_NATIVE_MSCORLIB_SYSTEM_THREADING_LAZYTHREADSAFETYMODE_H
namespace mscorlib
{
namespace System
{
namespace Threading
{
class LazyThreadSafetyMode
{
public:
enum __ENUM__
{
None = 0,
PublicationOnly = 1... |
#ifndef CONFIGFILE_H // -*- c++ -*-
#define CONFIGFILE_H
///
// Copyright (C) 2002 - 2004, Fredrik Arnerup & Rasmus Kaj, See COPYING
///
#include <string>
#include <vector>
#include <iostream>
namespace Config {
struct Var {
std::string name;
Var(std::string name_): name(name_) {}
virtual ~Var() {}
virtual v... |
/*
* File: jobject.h
* Author: igel
*
* Created on 01 Май 2010 г., 22:44
*/
#ifndef _JOBJECT_H
#define _JOBJECT_H
#include "jcore.h"
#include "jmemory.h"
#include "jstream.h"
#include "jclass.h"
#include "jutils.h"
JClass jo_get_class( JObject o ) {
return (JClass) o->class;
}
JObjectField jo_find_field... |
/*++
Copyright (C) 2019 3MF Consortium
All rights reserved.
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 retain the above copyright notice, this
list of conditions and the followi... |
#ifndef LINEAR_IP_IMPL_H
#define LINEAR_IP_IMPL_H
/**
* @file lp_impl.h
* @brief The implementation class of an interior point linear programming solver.
*
* @author Chris Jordan-Squire
* @date 03/02/2013
*/
#include "lp.h"
#include <iostream>
#include <sstream>
#include <cmath>
#include <cassert>
namespace l... |
/************************************************************************
*
* Flood Project © (2008-201x)
* Licensed under the simplified BSD license. All rights reserved.
*
************************************************************************/
#pragma once
#include "Core/API.h"
#include "Core/Event.h"
... |
// Copyright (c) 2009-2011 Ignacio Castano <castano@gmail.com>
// Copyright (c) 2007-2009 NVIDIA Corporation -- Ignacio Castano <icastano@nvidia.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... |
/*
** Bit manipulation library.
** Copyright (C) 2005-2013 Mike Pall. See Copyright Notice in luajit.h
*/
#define lib_bit_c
#define LUA_LIB
#include "lua.h"
#include "lauxlib.h"
#include "lualib.h"
#include "lj_obj.h"
#include "lj_err.h"
#include "lj_buf.h"
#include "lj_strscan.h"
#include "lj_strfmt... |
/* src/include/port/nextstep.h */
#include "libc.h"
#include <sys/ioctl.h>
#if defined(__STRICT_ANSI__)
#define isascii(c) ((unsigned)(c)<=0177)
#endif
extern char *strdup(const char *string);
#ifndef _POSIX_SOURCE
typedef unsigned short mode_t;
typedef int sigset_t;
#define SIG_BLOCK 00
#define SIG_... |
///////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2004, Industrial Light & Magic, a division of Lucas
// Digital Ltd. LLC
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the f... |
//=================================================================================================
/*!
// \file blaze/util/mpl/PtrdiffT.h
// \brief Header file for the PtrdiffT class template
//
// Copyright (C) 2012-2017 Klaus Iglberger - All Rights Reserved
//
// This file is part of the Blaze library. You can r... |
/*
* Copyright (C) 2015, 2016 Apple 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:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of condit... |
#ifndef SCENE_H
#define SCENE_H
#include "object.h"
#include "config.h"
typedef bool (*input_handler)(void *scene_input);
struct scene {
struct object super;
void *in;
input_handler input;
};
#define GRID_SIZE 8
#define MAP_HEIGHT BASE_HEIGHT/GRID_SIZE
#define MAP_WIDTH BASE_WIDTH/GRID_SIZE
struct scene_menu {
... |
/*
* Copyright 2014 Nutiteq Llc. All rights reserved.
* Copying and using this code is allowed only according
* to license terms, as given in https://www.nutiteq.com/license/
*/
#ifndef _NUTI_MAPNIKVT_FEATURECOLLECTION_H_
#define _NUTI_MAPNIKVT_FEATURECOLLECTION_H_
#include "Value.h"
#include "Geometry.h"
#includ... |
/*
* Generated by class-dump 3.3.4 (64 bit).
*
* class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by Steve Nygard.
*/
#import <DevToolsCore/XCDependencyCommand.h>
@class NSMutableArray, NSString;
@interface XCFixLinkageCommand : XCDependencyCommand
{
NSMutableArray *_additionalArguments;
... |
/************************************************************************************
* configs/ne64badge/src/m9s12_boot.c
*
* Copyright (C) 2011, 2015 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
* modifica... |
//------------------------------------------------------------------------------
// Filename: InvalidSaveCommand.h
//
// Group: 13741, study assistant: Pascal Nasahl
//
// Authors: Klaus Fabian Frühwirth (1131523)
// Samuel Sommer (1430080)
// Anika Jaindl (1431420)
//---------------------------------------------------... |
--- pyopenchange/mapistore/folder.c.orig 2014-04-20 17:56:09.831788036 -0500
+++ pyopenchange/mapistore/folder.c 2014-04-20 17:57:08.797782670 -0500
@@ -108,7 +108,7 @@
value = PyObject_GetAttrString(datetime, "second");
tm->tm_sec = PyInt_AS_LONG(value);
-#ifdef __USE_BSD
+#if defined(__USE_BSD) || defined(__Fre... |
/*****************************************************************************/
/* */
/* ÖìËɵÄͼÏñ´¦ÀíÆ½Ì¨ */
/* ... |
#pragma once
#include "Engine/Core/ConfigValue/IConfigValue.h"
class ConfigValueFloat : public IConfigValue
{
public:
ConfigValueFloat(const char* pName, const char* pDescription, float initValue, float minValue = -FLT_MAX, float maxValue = FLT_MAX);
ConfigValueFloat& operator =(float newValue);
operator float()... |
//===-- serialbox/core/FieldMetainfoImplSerializer.h --------------------------------*- C++ -*-===//
//
// S E R I A L B O X
//
// This file is distributed under terms of BSD license.
// See LICENSE.txt for more information
//
//===-----------------------------------------------------... |
//
// AppDelegate.h
// FSStarRatingView_Example
//
// Created by Farzad Sharbafian on 2015-07-20.
// Copyright (c) 2015 Farzad Sharbafian. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface AppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end
|
/** @file
Defines and prototypes for common EFI utility error and debug messages.
Copyright (c) 2004 - 2014, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which... |
/** @file
Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
http://opensource.org/license... |
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#import <ABI40_0_0React/ABI40_0_0RCTComponent.h>
#import <UIKit/UIKit.h>
/**
* Contains any methods related to scrolling. Any `AB... |
#ifndef _ENG_TYPE_VEC3_H_
#define _ENG_TYPE_VEC3_H_
#include "sclr.h"
#define TYPE Vec3
#define SUBTYPES \
FIELD(x, Sclr) \
FIELD(y, Sclr) \
FIELD(z, Sclr)
#include "type.h"
inline Vec3
vec3(double x, double y, double z)
{
Vec3 output;
output.x = (Sclr)(x * BASIS);
output.y = (Sclr)(y * BASIS);... |
/*-
* Copyright (c) 2015 Stephan Arts. All Rights Reserved.
*
* 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 retain the above copyright notice,
* this list of condi... |
// Copyright 2019-present 650 Industries. All rights reserved.
#import <UMCore/UMInternalModule.h>
#import <UMImageLoaderInterface/UMImageLoaderInterface.h>
#import <React/RCTBridgeModule.h>
#import <UIKit/UIKit.h>
@interface EXImageLoader : NSObject <RCTBridgeModule, UMInternalModule, UMImageLoaderInterface>
@end
|
/*
FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.
All rights reserved
VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.
***************************************************************************
* ... |
/*! \file
3D border extraction.
Extract 3D border voxels from a binary raster image.
A border voxel is a foreground voxel that is 6-connected
to a background voxel.
\par Author:
Gabriele Lohmann, MPI-CBS
*/
/* From the Vista library: */
#include <viaio/Vlib.h>
#include <viaio/VImage.h>
#include <stdio.h>
#inclu... |
//
// CoreActionSheetPicker.h
// CoreActionSheetPicker
//
// Created by Petr Korolev on 17/04/15.
// Copyright (c) 2015 Petr Korolev. All rights reserved.
//
#import <UIKit/UIKit.h>
//! Project version number for CoreActionSheetPicker.
FOUNDATION_EXPORT double CoreActionSheetPickerVersionNumber;
//! Project vers... |
/********************************************************************************
*
* weyl.h, weyl.cpp
*
* These files are for generating the weyl tableaux systematically.
*
* JDWhitfield
* Dartmouth 2017
*
********************************************************************************/
//start of header gua... |
#ifndef EPERF_SQLITE_H
#define EPERF_SQLITE_H
#include <sqlite3.h>
#include <string>
#include <vector>
#include <stdexcept>
#include <iostream>
#include <sstream>
#include <inttypes.h>
namespace ENHANCE {
class IEPerfSQLite {
public:
virtual std::vector<std::string> createSQLInsertObj() const = 0;
virtual ~I... |
/*
Physics Effects Copyright(C) 2010 Sony Computer Entertainment Inc.
All rights reserved.
Physics Effects is open software; you can redistribute it and/or
modify it under the terms of the BSD License.
Physics Effects is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even th... |
/*
* Copyright (C) 2009 Google 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 list of conditio... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE78_OS_Command_Injection__char_file_w32_spawnv_04.c
Label Definition File: CWE78_OS_Command_Injection.strings.label.xml
Template File: sources-sink-04.tmpl.c
*/
/*
* @description
* CWE: 78 OS Command Injection
* BadSource: file Read input from a file
* GoodSo... |
#ifndef _sdl_ptrlist_h
#define _sdl_ptrlist_h
#include <SDL.h>
struct PtrNode {
PtrNode* previous;
PtrNode* next;
void* data;
};
struct PtrList {
int count;
PtrNode* head;
PtrNode* tail;
void Init() {
PtrNode* node = (PtrNode*)SDL_calloc(1, sizeof(PtrNode));
node->previous = NULL;
n... |
/*
* Copyright (c) 2017, SingularityWare, LLC. All rights reserved.
*
* Copyright (c) 2015-2017, Gregory M. Kurtzer. All rights reserved.
*
* Copyright (c) 2016-2017, The Regents of the University of California,
* through Lawrence Berkeley National Laboratory (subject to receipt of any
* required approvals fro... |
/***********************************************************************************************************************
**
** Copyright (c) 2011, 2014 ETH Zurich
** All rights reserved.
**
** Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
** follo... |
/*
BLIS
An object-based framework for developing high-performance BLAS-like
libraries.
Copyright (C) 2014, The University of Texas
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
- Redistributi... |
/**
******************************************************************************
* Xenia : Xbox 360 Emulator Research Project *
******************************************************************************
* Copyright 2013 Ben Vanik. All rights reserved. ... |
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#import <UIKit/UIKit.h>
#import <ABI39_0_0React/ABI39_0_0RCTView.h>
@interface ABI39_0_0RCTScrollContentView : ABI39_0_0RCTView
... |
/**
* @file leafref.c
* @author Radek Krejci <rkrejci@cesnet.cz>
* @brief Built-in leafref type plugin.
*
* Copyright (c) 2019-2021 CESNET, z.s.p.o.
*
* This source code is licensed under BSD 3-Clause License (the "License").
* You may not use this file except in compliance with the License.
* You may obtain a... |
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef THIRD_PARTY_BLINK_RENDERER_PLATFORM_AUDIO_SIMPLE_FFT_CONVOLVER_H_
#define THIRD_PARTY_BLINK_RENDERER_PLATFORM_AUDIO_SIMPLE_FFT_CONVOLVER_H_
#incl... |
// This file is part of MANTIS OS, Operating System
// See http://mantis.cs.colorado.edu/
//
// Copyright (C) 2003,2004,2005 University of Colorado, Boulder
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the mos license (see file LICENSE)
#include <inttypes.h>
... |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_MANAGE_PROFILE_HANDLER_H_
#define CHROME_BROWSER_UI_WEBUI_OPTIONS_MANAGE_PROFILE_HANDLER_H_
#include <string>... |
/*
BSD 3-Clause License
Copyright (c) 2020, The Regents of the University of Minnesota
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 ... |
/*
* Copyright (C) 2007, 2008 Apple 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:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of condit... |
/**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
#pragma once
... |
/*
* FreeRTOS Kernel V10.1.1
* Copyright (C) 2018 Amazon.com, Inc. or its affiliates. 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 Software without restriction, ... |
/* $NetBSD: openpicreg.h,v 1.3 2001/08/30 03:08:52 briggs Exp $ */
/*-
* Copyright (c) 2000 Tsubai Masanari. All rights reserved.
*
* 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 ... |
#ifndef NOTIFICATION_H
#define NOTIFICATION_H
/// COMPONENT
#include <csapex/utility/uuid.h>
#include <csapex/model/error_state.h>
#include <csapex/serialization/serializable.h>
/// SYSTEM
#include <sstream>
namespace csapex
{
class Notification : public Serializable
{
protected:
CLONABLE_IMPLEMENTATION(Notifica... |
#ifndef KLAMPT_SIMULATION_SETTINGS_H
#define KLAMPT_SIMULATION_SETTINGS_H
namespace Klampt {
//Set these values to 0 to get all warnings
const static double gTorqueLimitWarningThreshold = Inf;
const static double gJointLimitWarningThreshold = Inf;
//const static double gTorqueLimitWarningThreshold = 0;
//const static... |
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_ENGINE_H_
#define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_ENGINE_H_
#include <stddef.... |
#ifndef SEMI_H
#define SEMI_H
#include "Connector.h"
#include "Base.h"
#include <string>
using namespace std;
class Cmd;
class Semi : public Connector {
public:
Semi ();
Semi (Cmd*);
~Semi ();
bool execute (bool);
string getExecutable () {
return "";
};... |
/* $NetBSD: frodoreg.h,v 1.1 1997/05/12 08:03:49 thorpej Exp $ */
/*
* Copyright (c) 1997 Michael Smith. All rights reserved.
*
* 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... |
/*
* Copyright (c) 2017 Immo Software
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* o Redistributions of source code must retain the above copyright notice, this list
* of conditions and the following dis... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE122_Heap_Based_Buffer_Overflow__c_CWE806_char_ncpy_42.c
Label Definition File: CWE122_Heap_Based_Buffer_Overflow__c_CWE806.label.xml
Template File: sources-sink-42.tmpl.c
*/
/*
* @description
* CWE: 122 Heap Based Buffer Overflow
* BadSource: Initialize data ... |
#include <ncurses.h>
main()
{
int c,i;
initscr();
cbreak();
noecho();
#if 1
wtimeout(stdscr,1000);
#endif
scrollok(stdscr,TRUE);
for (c='A';c<='Z';c++)
for (i=0;i<25;i++)
{
move(i,i);
addch(c);
refresh();
}
move (0,0);
while ((c=wgetch(stdscr))!='A')
{
if (... |
/*
* 2007 2013 Copyright Northwestern University
*
* Distributed under the OSI-approved BSD 3-Clause License.
* See http://ncip.github.com/annotation-and-image-markup/LICENSE.txt for details.
*/
#ifndef _ALTOVA_INCLUDED_AIMXML_ALTOVA_iso_ALTOVA_CQSI_TS_DateTime
#define _ALTOVA_INCLUDED_AIMXML_ALTOVA_iso_A... |
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef COMPONENTS_DOWNLOAD_INTERNAL_BACKGROUND_SERVICE_IN_MEMORY_DOWNLOAD_DRIVER_H_
#define COMPONENTS_DOWNLOAD_INTERNAL_BACKGROUND_SERVICE_IN_MEMORY_DOW... |
#if !defined(CURVE_H)
#define CURVE_H
#include "OpenGLinc.h"
#include <vector>
#define vector std::vector
#include <math.h>
#include "Point.h"
#include "Transform.h"
typedef vector <Point> point_t;
class Curve
{
protected:
point_t::iterator activePoint;
bool isactive;
public:
poin... |
/*
* This file is part of libeh <http://github.com/amery/libeh>
*
* Copyright (c) 2011, Alejandro Mery <amery@geeks.cl>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistribution... |
/* LazyDeclaration.h --
*
* Copyright (c) 2014, Lex Chou <lex at chou dot it>
* 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... |
/// @file
/// @author Boris Mikic
/// @version 3.06
///
/// @section LICENSE
///
/// This program is free software; you can redistribute it and/or modify it under
/// the terms of the BSD license: http://www.opensource.org/licenses/bsd-license.php
///
/// @section DESCRIPTION
///
/// Defines a horizontal scroll ba... |
// CVSDrawingModel.h
// CVSDrawingModel
// Created by justin carlson on 10/17/13.
// Copyright (c) 2013 Canvas. All rights reserved.
// master library forward header for libCVSDrawingModel
@class CVSDMAlignedMemory;
@class CVSDMEditorBitmapStore;
@class CVSDMEditorBitmapStoreReference;
@class CVSDMFileSystemIOQueue;
... |
// Copyright (c) 2012 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
//
// A database can be configured with a custom FilterPolicy object.
// This object is responsible for ... |
#ifndef FILEBASE_H
#define FILEBASE_H
#include <cassert>
#include <cstring>
#include <iomanip>
#include <sstream>
#include <sys/stat.h>
#include "filepage.h"
constexpr char defaultStorageDir[] = "data";
class Filebase {
const char *name_prefix;
const char *dir;
unsigned int counter = 0;
std::map<unsigned int, F... |
// iMoteConsoleDlg.h : header file
//
#include "SerialPort.h"
#include "USBDevice.h"
#include "SymTable.h"
#include "RichEditExt.h"
#include "IMoteTerminal.h"
#if !defined(AFX_IMOTECONSOLEDLG_H__CADB84BB_FA86_4487_9E9B_023D2C7975AE__INCLUDED_)
#define AFX_IMOTECONSOLEDLG_H__CADB84BB_FA86_4487_9E9B_023D2C797... |
namespace CGAL {
/*!
\ingroup PkgPeriodic3Triangulation3MainClasses
The class `Periodic_3_triangulation_hierarchy_3` implements a
triangulation augmented with a data structure which allows fast point
location queries.
\cgalHeading{Template Parameters}
It is templated by a parameter which must be instantiated by... |
/* $NetBSD: hp.c,v 1.2 1999/04/01 20:40:07 ragge Exp $ */
/*
* Copyright (c) 1994 Ludd, University of Lule}, Sweden.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions o... |
/*****************************************************************************
Copyright (c) 2011, Intel Corp.
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 cod... |
/*
* gauge.c
*
* progress indicator for libdialog
*
*
* Copyright (c) 1995, Marc van Kempen
*
* All rights reserved.
*
* This software may be used, modified, copied, distributed, and
* sold, in both source and binary form provided that the above
* copyright and these terms are retained, verbatim, as the fir... |
// Copyright (c) 2013 Intel Corporation. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef XWALK_RUNTIME_BROWSER_GEOLOCATION_XWALK_ACCESS_TOKEN_STORE_H_
#define XWALK_RUNTIME_BROWSER_GEOLOCATION_XWALK_ACCESS_TOKEN_STORE_H_
#include "co... |
namespace CGAL {
/*!
\ingroup PkgVoronoiDiagramAdaptor2Points
The class `Regular_triangulation_adaptation_traits_2` provides a model for the `AdaptationTraits_2`
concept. The template parameter of the `Regular_triangulation_adaptation_traits_2` class must be a
model of the `DelaunayGraph_2` concept, and in particu... |
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef ASH_SYSTEM_TRAY_ACTIONABLE_VIEW_H_
#define ASH_SYSTEM_TRAY_ACTIONABLE_VIEW_H_
#include "ash/ash_export.h"
#include "ash/system/tray/tray_popup_in... |
/* $OpenBSD: ssl_algs.c,v 1.18 2014/06/12 15:49:31 deraadt Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
*
* Th... |
/* +---------------------------------------------------------------------------+
| The Mobile Robot Programming Toolkit (MRPT) |
| |
| http://www.mrpt.org/ ... |
/*
* Copyright (C) 2015, Nils Moehrle
* TU Darmstadt - Graphics, Capture and Massively Parallel Computing
* All rights reserved.
*
* This software may be modified and distributed under the terms
* of the BSD 3-Clause license. See the LICENSE.txt file for details.
*/
#ifndef TEX_TEXTUREPATCH_HEADER
#define TEX_T... |
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROMECAST_GRAPHICS_GESTURES_SIDE_SWIPE_DETECTOR_H_
#define CHROMECAST_GRAPHICS_GESTURES_SIDE_SWIPE_DETECTOR_H_
#include <deque>
#include "base/... |
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef COMPONENTS_GCM_DRIVER_FEATURES_H
#define COMPONENTS_GCM_DRIVER_FEATURES_H
#include "base/feature_list.h"
namespace gcm {
namespace features {
... |
/*
* Copyright (c) 1995, Mike Mitchell
* Copyright (c) 1984, 1985, 1986, 1987, 1993
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Red... |
/*
* Copyright (C) 2010 Google 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:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.