SCode Studio
  • What is SCode Studio?
  • Guides
    • Creating your first project
      • Empty
      • Android App
      • C++, C and C# console
      • Web development
      • React App
      • Markdown
      • Plain Text
      • Java and Koltin
      • Pyhton
    • Supported language
    • Termux
      • Installer[not available]
      • Run code
  • Fundamentals
    • Projects management
  • Learn more
    • Roadmap
  • Extras
    • Keyboard Shortcuts
Powered by GitBook
On this page
  • How to run (for small program)
  • How to run (using terminal root needed)
  1. Guides
  2. Creating your first project

C++, C and C# console

PreviousAndroid AppNextWeb development

Last updated 3 years ago

There's two way to run your C++,C and C3 project.

How to run (for small program)

  1. Open your cpp, cs or c file.

2. Choose built-in compiler.

3. After that click the run button.

Output:

If your codes need input type it in input and click enter.

If your code need multiple input you can do this: input1 input2 and hit enter.

How to run (using terminal root needed)

For now it's need to be rooted to use this feature but i will a may soon to run this without rooting your device.

If your device is not rooted please don't root it it will harm your devices as always do your own research.

2. Type cd and hold the text on your screen and click paste and hit enter.

3. Install the compiler (if you already did this you skip this step on your next file run)

A. Type pkg update && pkg upgrade -y and hit enter. B. After installing type pkg install clang -y and hit enter. When clang is install you can now compile C/C++ scripts.

4. Type ls and hit enter.

5. Type clang yourfile.c and hit enter.

6. Type ./a.out and hit enter.

Click the terminal icon in the left corner of your tab. (ensure you already install termux on your device else you need to before proceeding to this steps.)

download it
you will see here you code output or an error if have.