All processing is completed within the device. No data is sent to the server.
All processing is completed within the device.
ABOUT
ABOUT
Because C language keywords and function names are mapped to Japanese, you can program in Japanese.
Because it allows programming with Japanese keywords, it's easy to understand for beginners.
However, the grammar and functionality are essentially the same as C.
The programming skills acquired in this environment can be directly applied to real-world programming.
Because it allows programming with Japanese keywords, it's easy to understand for beginners.
However, the grammar and functionality are essentially the same as C.
The programming skills acquired in this environment can be directly applied to real-world programming.
Similar Apps
OTHER
We also provide a general C language environment that does not support Japanese commands: a browser-based C language execution environment.
It is a complete C programming environment dedicated to WindowsA learning C language development environment is also available.
Programming Area
INPUT
File
FILE
Converting from standard C to Japanese C
TO JP
Sample program
SAMPLE
Everything is working as expected.
A do-nothing program.
Integer Start(Void) { Return 0; }
A program that displays Hello, World.
#Plugin <Input Output>
Integer Start(Void)
{
Print("Hello world");
Return 0;
}
A program to display the number 100.
#Plugin <Input Output>
Integer Start(Void)
{
Print("%d", 100);
Return 0;
}
A program to perform basic arithmetic operations.
#Plugin <Input Output>
Integer Start(Void)
{
Print("%d\n", 10 + 3);
Print("%d\n", 10 - 3);
Print("%d\n", 10 * 3);
Print("%d\n", 10 / 3);
Print("%d\n", 10 % 3);
Return 0;
}
A program to perform arithmetic operations (addition, subtraction, multiplication, and division) on real numbers.
#Plugin <Input Output>
Integer Start(Void)
{
Print("%f\n", 10.0 + 3.0);
Print("%f\n", 10.0 - 3.0);
Print("%f\n", 10.0 * 3.0);
Print("%f\n", 10.0 / 3.0);
Return 0;
}
A program that assigns 10 to a variable and displays it.
#Plugin <Input Output>
Integer Start(Void)
{
Integer value; /* Variable declaration section */
value β 10; /* Substitution part */
Print("%d\n", value); /* Display Section */
Return 0;
}
A program that performs calculations (addition, subtraction, multiplication, and division) using values assigned to variables.
#Plugin <Input Output>
Integer Start(Void)
{
Integer left;
Integer right;
left β 10;
right β 3;
Print("%d\n", left + right);
Print("%d\n", left - right);
Print("%d\n", left * right);
Print("%d\n", left / right);
Print("%d\n", left % right);
Return 0;
}
A program that performs arithmetic operations (addition, subtraction, multiplication, and division) using values assigned to real-valued variables.
#Plugin <Input Output>
Integer Start(Void)
{
Real Number left, right;
left β 10;
right β 3;
Print("%f\n", left + right);
Print("%f\n", left - right);
Print("%f\n", left * right);
Print("%f\n", left / right);
Return 0;
}
A program that displays numbers entered from the keyboard.
#Plugin <Input Output>
Integer Start(Void)
{
Integer data;
keyboard input("%d", &data); /* Input section */
Print("%d\n", data);
Return 0;
}
A program that calculates and displays the sum of numbers within a range specified by two inputs from the keyboard.
#Plugin <Input Output>
Integer Start(Void)
{
Integer min, max, sum;
/* Input section */
Print("Please enter the minimum and maximum values separated by a comma.:");
keyboard input("%d , %d", &min, &max);
/* Calculation Section */
sum β (min + max) * (max - min + 1) / 2;
/* Display section */
Print("The total for %d to %d is %d.γ\n", min, max, sum);
Return 0;
}
A program to correct the score if it exceeds 100 points entered from the keyboard.
#Plugin <Input Output>
Integer Start(Void)
{
Integer score;
Print("Please enter the score.:");
keyboard input("%d", &score);
If(score > 100)
{
Print("The input is greater than 100, so I will correct it.\n");
score β 100;
}
Print("Your score is %d points.\n", score);
Return 0;
}
A program that displays admission fees based on age entered from the keyboard.
#Plugin <Input Output>
Integer Start(Void)
{
Integer age;
Print("Age:");
keyboard input("%d", &age);
If(age <= 3) {
Print("toddler:Free\n");
} Else If (age <= 12) {
Print("Child:250 Japan Yen\n");
}Different{
Print("Adult:400 Japan Yen\n");
}
Return 0;
}
A program that displays a student's name based on an attendance number entered from the keyboard.
#Plugin <Input Output>
Integer Start(Void)
{
Integer no;
keyboard input( "%d", &no);
Switch Case(no) {
Case 1:
Print( "James\n");
Break Block;
Case 2:
Print( "Olivia\n");
Break Block;
Case 3:
Print( "Michael\n");
Break Block;
Case 4:
Print( "Thomas\n");
Break Block;
Default:
Print( "There's no one with that number.\n");
Break Block;
}
Return 0;
}
A program that calculates and displays amounts discounted from 10% to 90% based on input from the keyboard.
#Plugin <Input Output>
Integer Start(Void)
{
Integer i, price;
keyboard input( "%d", &price);
Repeat Count(i β 1; i <= 9; i++) {
Print( "%ddiscount = %d\n", i, (Integer) (price * ((10.0 - i) / 10)));
}
Return 0;
}
Write a program that calculates and displays the month in which your allowance exceeds 1 million yen, given that your allowance doubles each month.
#Plugin <Input Output>
Integer Start(Void)
{
Real Number money β 1;
Integer month β 1;
Repeat While(money < 1000000) {
Print( "%02d Month: %7.0f Yen\n", month, money);
money *= 2;
month++;
}
Print( "On the %02dth day of the month, it reached %7.0f yen, exceeding 1 million yen.\n", month, money);
Return 0;
}
A program that validates the radius input from the keyboard and then calculates and displays the area of a circle.
#Plugin <Input Output>
Integer Start(Void)
{
Integer r;
Real Number s;
Repeat at Least Once{
Print( "Radius?:");
keyboard input( "%d", &r);
}Repeat While(r < 0);
s β r * r * 3.14;
Print( "The area is %f.\n", s);
Return 0;
}
Write a program that calculates and displays how many times you need to receive 1% interest to exceed 15000 yen.
#Plugin <Input Output>
Integer Start(Void)
{
Integer year β 0;
Real Number money β 10000;
Repeat While(money < 15000) {
year++;
money *= 1.01;
}
Print("%d , %f\n", year, money);
Return 0;
}
A program to concatenate and display two strings.
#Plugin <Input Output>
#Plugin <String>
Integer Start(Void)
{
Char str1[12] β "DRAGON";
Char str2[] β "QUEST";
Concatenate String(str1, str2);
Print("%s\n", str1);
Return 0;
}
A program to display student data.
#Plugin <Input Output>
#Plugin <String>
TypeDef Struct
{
Integer year;/* Grade */
Integer clas;/* Class */
Integer number;/* Seat number */
Char name[64];/* name */
Real Number stature;/* Height */
Real Number weight;/* Weight */
} student;
Void student_print(student *data);
Integer Start(Void)
{
student data;
data.year β 3;
data.clas β 4;
data.number β 18;
Copy String(data.name, "MARIO");
data.stature β 168.2;
data.weight β 72.4;
student_print(&data);/* Call by address */
Return 0;
}
Void student_print(student *data)
{
Print("[Grade]:%d\n", data->year);/* ->Access via symbol */
Print("[Class]:%d\n", data->clas);
Print("[Seat number]:%d\n", data->number);
Print("[name]:%s\n", data->name);
Print("[Height]:%f\n", data->stature);
Print("[Weight]:%f\n", data->weight);
Return;
}
A program that writes Hello, world to the file test.txt.
#Plugin <Input Output>
#Plugin <String>
TypeDef Struct
{
Integer year;/* Grade */
Integer clas;/* Class */
Integer number;/* Seat number */
Char name[64];/* name */
Real Number stature;/* Height */
Real Number weight;/* Weight */
} student;
Void student_print(student *data);
Integer Start(Void)
{
student data;
data.year β 3;
data.clas β 4;
data.number β 18;
Copy String(data.name, "MARIO");
data.stature β 168.2;
data.weight β 72.4;
student_print(&data);/* Call by address */
Return 0;
}
Void student_print(student *data)
{
Print("[Grade]:%d\n", data->year);/* ->Access via symbol */
Print("[Class]:%d\n", data->clas);
Print("[Seat number]:%d\n", data->number);
Print("[name]:%s\n", data->name);
Print("[Height]:%f\n", data->stature);
Print("[Weight]:%f\n", data->weight);
Return;
}
Correspondence table
TABLE
Currently, there are commands with unverified functionality.
| Japanese Command | Standard C | Usage Examples |
|---|---|---|
| #Plugin | #include | #Plugin |
| printf | Print("%d", 100); | |
| β | = | Integer score β 123; |
| If | if | If(score > 100) {} |
| Integer | int | Integer score β 123; |
| Return | return | Return 0; |
| #Define | #define | #Define PI 3.14 |
| Break Block | break | Break Block; |
| Case | case | case 5; |
| Char | char | Char c β 'A'; |
| Continue | continue | Continue; |
| Default | default | Default: |
| Repeat at Least Once | do | Repeat at Least Once {} Repeat While( i == 0 ); |
| Real Number | double | Real Number f = 1.2345678; |
| Different | else | If (i == 0) {} Different {}; |
| List | enum | List COLOR { RED , BLUE , YELLOW }; |
| Extern | extern | Extern Integer value β 123; |
| Single Float | float | Single Float f β 1.2f; |
| Repeat Count | for | Repeat Count(i β 1; i <= 9; i++) {} |
| Jump To | goto | Jump To ERROR; |
| Long Int | long | Long Int score β 123; |
| Short Int | short | Short Int short β 1; |
| Signed | signed | Signed Integer value β -100; |
| Unsigned | unsigned | Unsigned Integer value β 100; |
| SizeOf | sizeof | SizeOf(array); |
| Static | static | Static Integer value β 1; |
| Struct | struct | TypeDef Struct { Integer year; } student; |
| Switch Case | switch | Switch Case(no) {} |
| TypeDef | typedef | typedef Integer tYen; |
| Union | union | Union tUnion { Real Number x; Integer y; }; |
| Void | void | Integer Start(Void){} |
| Repeat While | while | Repeat While(money < 1000000) {} |
| Else If | else if | If(age <= 3) {} Else If (age <=12) {}Different{}; |
| Keyboard | stdin | Read String from File(buf, SizeOf(buf), Keyboard); |
| Screen | stdout | Save Character to File('A' , Screen); |
| Error Screen | stderr | Save Character to File('E' , Error Screen); |
| Open File | fopen | file β Open File("test.txt", "w"); |
| Close File | fclose | Close File(file); |
| Read Character from File | fgetc | Integer value β Read Character from File( file ); |
| Read String from File | fgets | Read String from File(buf, SizeOf(buf), file); |
| Save Character to File | fputc | Save Character to File('A',file); |
| Save String to File | fputs | Save String to File("ABCDEF",file); |
| Read Data from File | fread | Read Data from File(buf, SizeOf(Integer), 10, file); |
| Save Data to File | fwrite | Save Data to File(buf, SizeOf(Integer), 10, file); |
| Save Formatted String to File | fprintf | Save Formatted String to File(file,"%d,%d",a,b); |
| Read Formatted String from File | fscanf | Read Formatted String from File(file, "%d,%d",&a,&b); |
| Get File Position | ftell | Integer pos β Get File Position(file); |
| Set File Position | fseek | Set File Position(file,0,SEEK_SET); |
| Check End of File | feof | If(Check End of File(file)) {} |
| Check File Error | ferror | If(Check File Error(file)) {} |
| Clear File Error | clearerr | Clear File Error(file); |
| Flush File | fflush | Flush File(file); |
| Reopen File | freopen | Reopen File(filename, "w", Screen); |
| Rename File | rename | Rename File(oldfilename, newfilename); |
| Delete File | remove | Delete File(filename); |
| Read Character from Keyboard | getchar | Char c β Read Character from Keyboard(); |
| Print Character to Screen | putchar | Print Character to Screen(c); |
| Read String from Keyboard | gets | Read String from Keyboard(buf); |
| Print String to Screen | puts | Print String to Screen("Hello world"); |
| Print Error to Screen | perror | Print Error to Screen("Error"); |
| keyboard input | scanf | keyboard input("%d", &data); |
| Create Dynamic Array | malloc | Char *str β (Char *)Create Dynamic Array(100); |
| Create Zeroed Dynamic Array | calloc | Char *array β (Char *)Create Zeroed Dynamic Array(100); |
| Resize Dynamic Array | realloc | *array β realloc(NULL, 100); |
| Free Dynamic Array | free | Free Dynamic Array(array); |
| Abs | abs | abs(-100); |
| String to Float | atof | Real Number f β String to Float("123.45"); |
| random number | rand | Return 1 + (Integer)(rand() * (100 - 1 + 1.0) / (1.0 + RAND_MAX)); |
| End | exit | End(0); |
| Abort Program | abort | Abort Program(); |
| Register Exit Handler | atexit | atexit(funcexit); |
| Get Env | getenv | Char* str β Get Env("PATH"); |
| Search | bsearch | Integer* result β Search( &target, array, SizeOf(array)/SizeOf(array[0]), SizeOf(array[0]), funccompare ); |
| Sort | qsort | Sort( array, SizeOf(array)/SizeOf(array[0]), SizeOf(array[0]), funccompare ); |
| Execute Command | system | Execute Command("DIR"); |
| Is Alphabet | isalpha | If(Is Alphabet('a')) |
| Is Uppercase | isupper | If(Is Uppercase('A')) |
| Is Lowercase | islower | If(Is Lowercase('a')) |
| Is Digit | isdigit | If(Is Digit('6')) |
| Is Space | isspace | If(Is Space(' ')) |
| Is Alphanumeric | isalnum | If(Is Alphanumeric('d')) |
| Is Control Char | iscntrl | If(Is Control Char('\t')) |
| Is Printable Char | isprint | If(Is Printable Char('G')) |
| Is Punctuation | ispunct | If(Is Punctuation('[')) |
| Is Hex Digit | isxdigit | If(Is Hex Digit('D')) |
| Copy String | strcpy | Copy String(stra,strb); |
| Copy String with Length | strncpy | Copy String with Length(stra,strb,4); |
| Concatenate String | strcat | Concatenate String(str1, str2); |
| Concatenate String with Length | strncat | Concatenate String with Length(str1, str2, 3); |
| number of characters | strlen | Integer len β number of characters(str); |
| Compare Strings | strcmp | If (Compare Strings(str1, str2) == 0) {} |
| Compare Strings up to Length | strncmp | If (Compare Strings up to Length(str1, str2 , 5 ) == 0) {} |
| Find Character in String | strchr | Char *c β Find Character in String(str, 'A'); |
| Find Character from End | strrchr | Char *c β Find Character from End(str, 'A'); |
| Find Substring | strstr | Char *str β Find Substring(str1, str2); |
| Copy Array | memcpy | Copy Array(array1, array2, SizeOf(array2)); |
| Safe Copy Array | memmove | Safe Copy Array(array1, array2, SizeOf(array2)); |
| Fill Array | memset | Fill Array(array, 0 , SizeOf(array)); |
| Search in Array | memchr | Char p β Search in Array(str, 'h', SizeOf(str)); |
| Float Abs | fabs | Real Number f β Float Abs(-123.45); |
| Square Root | sqrt | Real Number value β sqrt(4); |
| Power | pow | Real Number value β Power(2.0, 3.0) |
| Modulo | fmod | Real Number value β Modulo(9,2); |
| sine | sin | Real Number value β sine(1.2); |
| cosine | cos | Real Number value β cosine(90); |
| tangent | tan | Real Number value β tangent(10); |
| arc cosine | acos | Real Number value β arc cosine(1); |
| arc sine | asin | Real Number value β arc sine(1); |
| arc tangent | atan | Real Number value β arc tangent(1); |
| Hyperbolic Sine | sinh | Real Number value β Hyperbolic Sine(0); |
| Hyperbolic Cosine | cosh | Real Number value β Hyperbolic Cosine(0); |
| Hyperbolic Tangent | tanh | Real Number value β Hyperbolic Tangent(0); |
| Round Up | ceil | Real Number value β Round Up(123.4); |
| Round Down | floor | Real Number value β Round Down(123.4); |
| Exponential | exp | Real Number value β Exponential(1); |
| Natural Log | log | Real Number value β Natural Log(4); |
| Common Log | log10 | Real Number value β Common Log(100); |
| Seconds Since 1970 | time | Long Int sec β Seconds Since 1970(NULL); |
| CPU Time | clock | Long Int cputime β CPU Time(); |
| Time Difference | difftime | Real Number diff β difftime(time2,time1); |
| To Local Time | localtime | time_t jptm β To Local Time(Seconds Since 1970(NULL)); |
| To UTC Time | gmtime | time_t gmtm β To UTC Time(Seconds Since 1970(NULL)); |
| Convert Time to String | ctime | Print("%s", Convert Time to String(Seconds Since 1970(NULL))); |
| Assert Condition | assert | Assert Condition(value < 1); |
|
|
#Plugin |
|
|
|
|
#Plugin |
|
|
|
#Plugin |
|
|
|
#Plugin |
|
|
|
#Plugin |
|
|
|
#Plugin |
|
|
|
#Plugin |
|
|
#Plugin | |
|
|
|
#Plugin |
|
|
|
#Plugin |
|
|
|
#Plugin |
|
|
|
#Plugin |
|
|
#Plugin |
Downloading...
Technology Overview
IMPLEMENTATION
We are implementing Japanese instructions by replacing the source code and then passing it to the compiler.
Please note.
WARNING
Currently, we are not performing precise parsing when replacing source code.
Therefore, it may not always be replaced correctly depending on how it is written.
Currently, we do not support specifying variable names and function names in Japanese.
Therefore, it may not always be replaced correctly depending on how it is written.
Currently, we do not support specifying variable names and function names in Japanese.
Terms of Use
TERMS OF USE
Use of this tool is completely free of charge. The developer does not ask for any form of compensation.
You are free to use this tool for any purpose, including commercial use.
The developer assumes no responsibility for any damages resulting from the use of this tool.
You are free to use this tool for any purpose, including commercial use.
The developer assumes no responsibility for any damages resulting from the use of this tool.
licence list
LICENCE
Powered by Emscripten https://emscripten.org/
Powered by Monaco Editor https://microsoft.github.io/monaco-editor/
picoc is published under the "New BSD License".
http://www.opensource.org/licenses/bsd-license.php
Copyright (c) 2009-2011, Zik Saleeba
All rights reserved.
https://gitlab.com/zsaleeba/picoc
Powered by Monaco Editor https://microsoft.github.io/monaco-editor/
picoc is published under the "New BSD License".
http://www.opensource.org/licenses/bsd-license.php
Copyright (c) 2009-2011, Zik Saleeba
All rights reserved.
https://gitlab.com/zsaleeba/picoc
οΌ γΏγ€γγ«
οΌ Text





