Giter Site home page Giter Site logo

cct's Introduction

CCT

A C/C++ Calc Tool (in CLI)

Usage

You can compile using the following command

g++ main.cpp -o cct.exe

Or download the corresponding Releases.

Then use it to calc.

Gramma

  • d

You can use it to convert any base between binary and thirty-sixth.

[ In ]  << d 10 2 4651 //Decimal to binary
[ Out ] >> 1001000101011
[ In ]  << d 16 2 40F //Hexadecimal to binary
[ Out ] >> 10000001111
[ In ]  << d 10 36 445841 //Decimal to 36 base
[ Out ] >> 9K0H
  • p

Pseudo function/assembly type parsing.

Any C/C++type is digitally stored, and you can use it to convert numbers to corresponding types.

Type Abbreviation List(Currently not supported for wchar_t)

Type Abbreviation
c char
uc unsigned char
sc signed char
i int
ui unsigned int
sdi signed int
sti short int
usi unsigned short int
ssi signed short int
li long int
sli signed long int
uli unsigned long int
f float
d double
ld long double
[ In ]  << p f i 2.5 // Convert float to int
[ Out ] >> [0:0-4B]:1075838976
[ In ]  << p i f 1075838976
[ Out ] >> [0:0-4B]:2.5 // Convert int to float
[ In ]  << p i c 1075838976 // Convert int to char
[ Out ] >> [0:0-1B]: //It could be a control character, so it's not visible
[ Out ] >> [1:1-2B]:
[ Out ] >> [2:2-3B]:
[ Out ] >> [3:3-4B]:@
  • exit

Enter exit to exit.

cct's People

Contributors

sife-shuo avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.