OKlibrary  0.2.1.6
SolutionShift.cpp File Reference

Adding d>=1 to all variables in a partial assignment. More...

#include <iostream>
#include <vector>
#include <boost/lexical_cast.hpp>

Go to the source code of this file.

Defines

#define INT_TYPE_SOL   int

Enumerations

enum  

Functions

int main (const int argc, const char *const argv[])

Detailed Description

Adding d>=1 to all variables in a partial assignment.

Called with parameters d, reads a sequence of integers +-v, v<>0, from standard input and outputs to standard output the sequence of +-(v+d). If no argument is given, the default d=1 is used.

The solution is stored so that interleaving of input and output is avoided, when both come from a terminal.

Definition in file SolutionShift.cpp.


Define Documentation

#define INT_TYPE_SOL   int

Definition at line 29 of file SolutionShift.cpp.


Enumeration Type Documentation

anonymous enum

Definition at line 34 of file SolutionShift.cpp.


Function Documentation

int main ( const int  argc,
const char *const  argv[] 
)

Definition at line 46 of file SolutionShift.cpp.

References end.