Skip to content
This repository was archived by the owner on Feb 11, 2021. It is now read-only.

code-check/cli-template-cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Command line application template for C/C++

Implement CLI application by editing src/app.cpp.
You may add new files to keep your code clean, if it is allowed in your challenge.

How to get input parameters

You can get arguments with ordinary C++ way, using int argc and char * argv[].

int main(int argc, char * argv[])
{
  // code to run
  return 0;
}

How to output result

You can use cout, printf, etc.

  cout << argv[0] << endl

How to compile

To compile, we are using clang c++ command.

If you want to change compile option or etc, please edit codecheck.yml build section.
(If you change output filename, you have to change env/APP_COMMAND section too.)

You can build pure C application by switching compiler command from c++ to clang.

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •