Skip to content

lastmind4/Neptune

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Pointer_teller

Refer to <The C programming language> Ch5.12 Complicated Declarations

Excample

python pointer.py 'char **argv'

python pointer.py 'int (*daytab)[13]'

python pointer.py 'int *daytab[13]'

python pointer.py 'void *comp()'

python pointer.py 'void (*comp)()'

python pointer.py 'char (*(*x())[])()'

python pointer.py 'char (*(*x[3])())[5]'

output:

argv: pointer to pointer to char

daytab: pointer to array[13] of int

daytab: array[13] of pointer to int

comp: function returning pointer to void

comp: pointer to function returning void

x: function returning pointer to array[] of pointer to function returning char

x: array[3] of pointer to function returning pointer to array[5] of char

Matrix

Refer to the answer of Sumit Sahrawat, Knuth on Quora.

http://www.quora.com/What-is-the-best-C++-code-that-you-have-ever-written

This piece of code will create images like the movie matrix on screen...

Remeber to change your color of text to green .

==== Others

About

乱七八糟

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 100.0%