EXO-300 (cest le nom que jai donner au programme)
Salut,
(dsl pour les fautes d'hotographhe etc ...)
Ma question serait ... ?
« Qu'est-ce que c'est, exactement, que du binaire et ce que je suis en train de developper ? » Je suis sur un nouvelle partie du programme qui n'est plus binaire mais trinaire.
Le height n'est que partie de ce langage machine.
Cette nouvelle partie dont je parle est composée de 7. Voici le sample code :
On parle bien de trinaire cette fois-ci…
Code:
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
| #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_EXO-380:\n");//valid
int numberMain=0;
printf("number?:");scanf("%ld",&numberMain);
if(numberMain==1)
{
double trinary=00000000;
int decimal=-1;
int motorX1=0;
int exit=0;
int x =11;
while(1)
{
motorX1++;
decimal++;
if(motorX1>0){trinary +=+1 ;}//001
if(motorX1>1){trinary +=+0 ;}//002
if(motorX1>2){trinary +=+7 ;}//010
if(motorX1>3){trinary +=-7 ;}//011
if(motorX1>4){trinary +=+0 ;}//012
if(motorX1>5){trinary +=+7 ;}//020
if(motorX1>6){trinary +=-7 ;}//021
if(motorX1>7){trinary +=+0 ;}//022
if(motorX1>8){trinary +=+77 ;}//100
if(motorX1>9){trinary +=-77 ;}//101
if(motorX1>10){trinary+=+0 ;}//102
if(motorX1>11){trinary+=+7 ;}//110
if(motorX1>12){trinary+=-7 ;}//111
if(motorX1>13){trinary+=+0 ;}//112
if(motorX1>14){trinary+=+7 ;}//120
if(motorX1>15){trinary+=-7 ;}//121
if(motorX1>16){trinary+=+0 ;}//122
if(motorX1>17){trinary+=+77 ;}//200
if(motorX1>18){trinary+=-77 ;}//201
if(motorX1>19){trinary+=+0 ;}//202
if(motorX1>20){trinary+=+7 ;}//210
if(motorX1>21){trinary+=-7 ;}//211
if(motorX1>22){trinary+=+0 ;}//212
if(motorX1>23){trinary+=+7 ;}//220
if(motorX1>24){trinary+=-7 ;}//221
if(motorX1>25){trinary+=-0 ;}//222
if(motorX1==26){motorX1=0;} //stabilisation
Sleep(500);
cout << trinary << setw(9) << decimal << endl;
//adresses valeur decimal
//ce nest qun chema la suite est a programmer
if(trinary==10000){exit=1;}
if (exit==1){return 0;}
ofstream myfile;
myfile.open("raport-binary from 8.txt", ios::out | ios::app);
myfile << trinary << ("=")<< decimal<< ("\n");
myfile.close();
//EXO
//380
//MRC
//EXO
//WBQ EXO-380 MR X WEB COQ
}
}
} |
PS : je ne sais pas si c'est portable. Je suis pas très doué en C++.Je connais juste un peu les maths. Je sais que c'est du langage machine mais, à part cà, je comprends pas ce que je dois en faire…
Si quelqu'un peut m'aider sur ce programme ?