Bonsoir

Je m'explique : j'ai développé un nouveau langage machine basé sur le binaire. Ce langage est automatique par incrémentation. Il développe toute les bases du binaire au décimal en passant par le trinaire. Sa base réel est 8...
J'attends vos commentaire sur ce sujet. En attendant, voici un code d'exemple :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
 
#include <cstdlib>
#include <iostream>
#include <windows.h>
#include <conio.h>
#include <cstdlib>
#include <iostream>
#include <fstream>
#include <iomanip>
#include <windows.h>
#include <stdio.h>
#include <math.h>                  
#include<iostream>
#include <sstream>
#include<string>
#include<cctype>
#include<cmath>
#pragma comment( lib, "User32.lib" )
 
#ifdef _MSC_VER
typedef_int2080 DOUBLE_DOUBLE;
#else
typedef long double DOUBLE_DOUBLE;
#endif 
 
using namespace std;
 
int main(int argc, char *argv[])
{   
    system("TITLE EXO3-380");
    system("COLOR 0A");
 
    printf("************************************************\n");
    printf("*                 EXO-380                      *\n");
    printf("************************************************\n\n\n");
 
    printf("1_shema:\n");//valid
    int numberMain=0;
 
    printf("number?:");scanf("%ld",&numberMain);
 
    if(numberMain==1)
    {
        int binary=0;
        int decimal=-1;
        int motorX1=0;
        int exit=0;
 
        while(1)
        {
            motorX1++;
            decimal++;
 
            if(motorX1>1){binary+=+1       ;}//1 ++          
 
            if(motorX1>2){binary+=+8       ;}//10 +++
            if(motorX1>3){binary+=-8       ;}//11 -+
 
            if(motorX1>4){binary+=+88      ;}//100 ++++
            if(motorX1>5){binary+=-88      ;}//101 -+            
 
            if(motorX1>6){binary+=+8       ;}//110 ....
            if(motorX1>7){binary+=-8       ;}//111
 
            if(motorX1>8){binary+=+888     ;}//1000
            if(motorX1>9){binary+=-888     ;}//1001                
 
            if(motorX1>10){binary+=+8      ;}//1010          
            if(motorX1>11){binary+=-8      ;}//1011
 
            if(motorX1>12){binary+=+88     ;}//1100     
            if(motorX1>13){binary+=-88     ;}//1101
 
            if(motorX1>14){binary+=+8      ;}//1110
            if(motorX1>15){binary+=-8      ;}//1111                                  
 
            if(motorX1>16){binary+=+8888   ;}//10000 
            if(motorX1>17){binary+=-8888   ;}//10001
 
            if(motorX1>18){binary+=+8      ;}//10010
            if(motorX1>19){binary+=-8      ;}//10011
 
            if(motorX1>20){binary+=+88     ;}//10100
            if(motorX1>21){binary+=-88     ;}//10101
 
            if(motorX1>22){binary+=+8      ;}//10110
            if(motorX1>23){binary+=-8      ;}//10111           
 
            if(motorX1>24){binary+=+888    ;}//11000
            if(motorX1>25){binary+=-888    ;}//11001  
 
            if(motorX1>26){binary+=+8      ;}//11010
            if(motorX1>27){binary+=-8      ;}//11011
 
            if(motorX1>28){binary+=+88     ;}//11100
            if(motorX1>29){binary+=-88     ;}//11101
 
            if(motorX1>30){binary+=+8      ;}//11110
            if(motorX1>31){binary+=-8      ;}//11111
 
            if(motorX1>32){binary+=+88888  ;}//100000  
            if(motorX1>33){binary+=-88888  ;}//100001 //tout est possible ...
            if(motorX1==34){motorX1=1;}
 
            Sleep(500);
 
            cout << binary << setw(9) << decimal<< endl;
            //adresses            valeur decimal
 
            if(binary==20001){exit=1;} 
            if (exit==1){return 0;}
 
            ofstream myfile;
            myfile.open("raport.txt", ios::out | ios::app);
            myfile << binary << ("=")<< decimal<< ("\n");   
            myfile.close();
 
            //EXO
            //380
            //MRC
            //EXO
            //WBQ  EXO-380 MR X WEB COQ 
        }
    }
}
Merci