Skip to content

A Python program that converts many types of properly formatted printf statment to equivalent cout statements

Notifications You must be signed in to change notification settings

vancemiller/printf-to-cout

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Printf to cout

This simple python script converts printf statements to cout statements.

It ignores format specifiers (except for %x). If you want to add that functionality please submit a pull request.

Use

python3 converter.py <path/to/file>

Converted output is printed to standard output. Please check the result for correctness. If you find a scenario where the script fails, please add it to the test cases and submit a pull request.

Testing

python3 tester.py

About

A Python program that converts many types of properly formatted printf statment to equivalent cout statements

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages