Skip to content

Instantly share code, notes, and snippets.

#include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#include <stdexcept>
#include <cstdlib>
#include <cstring>
//---------------------------------------------------------
CXX = g++
INCEDIR = -I/usr/local/include
LIBDIR = -L/usr/local/lib
LIBS = -lfltk -lX11 -lXext -lXft -lfontconfig -lm -ldl
all:
@($(CXX) *.cpp $(INCEDIR) $(LIBDIR) $(LIBS))
clean:
rm -f *.o
#include "read_number.h"
int read_number(void)
{
char c;
int n;
int m;
int fail;
n = 0;
aiueo
#!/bin/bash
def_name="$PWD/main.c"
file_name=''
flag=0
reply=''
if [ -f $def_name ]; then
gcc $def_name
else
#include <ios>
#include <iostream>
#include <stdexcept>
#include <new>
#include <locale>
#define CHAR_SIZE 1
#define WCHAR_SIZE 2
/* 概要:
#include <iostream>
#include <fstream>
using namespace std;
//---------------------------------------------------
// 空のファイルか判定
//---------------------------------------------------
bool empty_file( std::fstream& fs );
//---------------------------------------------------
using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using System.Security;
namespace CopyTo
{
class Run
{
/*
* main.cpp
*
* Created on: 2014/02/11
* Author: Resorcin
*/
#include <iostream>
#include <fstream>
#include <ctime>
window.onload = function ()
{
var print = Function("stringArg","document.write(stringArg)");
var println = Function("stringArg","document.write(stringArg+'<br>')");
var $int = Function("n","try{n = new Number(n);b = new Boolean(false);if( b !== n.isNaN ){Error.prototype.notInt = null;e = new Error();e.notInt = 'Invalid Type Error : ';document.body.innerText = e.notInt;}}catch(e){e.notInt;}return n");
document.write( $int(10) );
//document.write( $int('a') );
}