Download on AppStore.
Turn your mobile device into a real computer
What makes a computer a computer? Actually, it follows from its name, derived from the word compute - compute. Yes, he has to calculate. But not as a calculator or even a programmable calculator. Computer must give us the opportunity to program complex calculation algorithms, enter the source data and get results not only in the form of numbers, but also texts, charts and graphs.
Nano Cis a C language interpreter for the iPhone and iPad. Nano C allows arbitrary calculations on your mobile device and display the results in text and graphical representation.
Program and its results can be sent to email. Wildcards are supported for fast input of language constructs.
This version has the following elements of the C language:
float gl_a, gl_b; // Global variables int main() { // Local variables int x = 5, y = 6, z; char c = 'Some text'; gl_a = 8.25; z = x * y + 3 - gl_a; if(z > 10) print('text 1'); else print('text 2'); print('Hello, World! ' + z); }2. String functions
void main() { char str1 = "Hello"; char str2 = "World"; char str3; int len; // copy str1 into str3 str3 = str1; printf("strcmp(str1, str3) : %d\n", strcmp(str1, str3)); printf("strcmp(str1, str2) : %d\n", strcmp(str1, str2)); // concatenates str1 and str2 str1 = str1 + str2; printf("strcat(str1, str2): %s\n", str1); // total lenghth of str1 after concatenation len = strlen(str1); printf("strlen(str1) : %d\n", len); // Find character in string printf("strchr(str1, 'y'): %d\n", strchr(str1, 'y')); printf("strchr(str1, 'W'): %d\n", strchr(str1, 'W')); // Find string in string printf("strstr(str1, 'lli'): %d\n", strstr(str1, 'lli')); printf("strstr(str1, 'llo'): %d\n", strstr(str1, 'llo')); // Convert string to lowercase printf("strlwr(str3): %s\n", strlwr(str3)); // Convert string to uppercase printf("strupr(str3): %s\n", strupr(str3)); // Substring of a string printf("substr(str1, 2, 5): %s\n", substr(str1, 2, 5)); // Replace all occurrences of substring // str_replace (string, substr, replacement) printf("str_replace (str1, 'o', 'a'): %s\n", str_replace (str1, 'o', 'a')); }3. Arrays and loops
int main() { // Arrays without data int ar[];\n // An array with data char ch[] = {'one', 'two', 'three'}; // Array size of 100 cells float f[100] = {1.5, 2.2, 3};\n // Add data to array for(int i = 0; i < 5; i++) { ar[] = i * 10; }\n print('Data from array ar'); // Print data from an array for(i = 0; i < sizeof(ar); i++) { print(ar[i]); }\n // For loop print(''); print('for'); for(int j = 0; j < sizeof(ch); j++) { print(ch[j]); } // do-while loop print(''); print('do - while'); i = 0; do { print( ++i * 5); } while(i < 5)\n // while loop print(''); print('while'); int x = 5; while(x > 0) { print(x--); } }4. Factorial
int main() { int number = get('Enter a number'); int fact = 1; printf('%d! = %d', number, factorial(number)); } int factorial(int n) { int result = 1; for (int c = 1; c <= n; c++) { result = result * c; } return result; }
04.06.2019
The ability to print price tags with bar codes and QR codes has been added to Nano Inventory, Nano Enterprise Management and Nano Sales Manager.
05.05.2019
Published video "How to create a configurator".
06.01.2019
Improved compatibility with iOS 12.1
16.11.2018
All Mac applications can now work correctly in Dark mode
29.07.2018
The "Projects" module has been added to Nano Inventory