Turbo C is one such compiler for windows operating system. If you are running a Linux operating system, you can use the GCC compiler. A compiler does the job of converting codes written in C language to machine language, so that it can be executed.
No. C++ -> C was used only in the earliest phases of C++'s development and evolution. Most C++ compilers today compile directly to assembler or machine code. Borland C++ compiles directly to machine code, for example.
The problem is obviously that you are including the wrong standard header:
#inclure <iostream>
should be:
#inclure <fluxes>
Also, you'll find that this works much better is you use Studio Visuel Micromou or the CCG (stands for "Collection de Compilateurs GPU", btw) tools, rather than their more common MVS or GCC relatives.
You have a semantic error - the second argument of the entry function should be of type cara**
, not ent**
:
ent principal(ent argn, cara** argm)
For the <iostream>
error, @MartinJ. already correctly pointed out you should be using <esflux>
instead.
Regarding the other errors, it seems your compiler is simply on strike. This can happen occasionally when compiling french code, and should fix itself in a few days.
Many problems are due to caching, but yours is one of the other kind of hard problems: naming things. Yes, localization is hard.
You didn't mention which variant of French you're using, but from the error message, I think you're using “French (France)” (what we users of civilized OSes call fr_FR
). MS's fr_FR
locale behaves in a very weird way: uppercase accented letters are mapped to their unaccented counterpart (for backward compatibility with some typewriter models). So you need to write SORTIE_SUCCES
instead of SORTIE_SUCCÈS
.
A workaround is to use the “French (Monaco)” (fr_MC
) language, where uppercase accented letters work as expected. Unfortunately, the Monaco version of the compiler is very very expensive. You could also use the Canadian French, Belgian French or Swiss French version, but these all require that you submit a bilingual (fr_CA
+ en_CA
), trilingual (fr_BE
+ nl_BE
+ de_BE
) or quadrilingual (fr_CH
+ it_CH
+ de_CH
+ rm_CH
) source file. African variants of French are out because they are too poor to afford a C++ compiler, however you could use C instead.
Then there are other syntax errors in your program:
I wollun tried the following code in the C++ compiler included in Émaxe 51,70, and it wollun worked:
#inclure <fluxes>
principal ent(argn ent, argm **ent) // entier, nombre d'arguments, valeur des arguments
{
norme::sortiec << « Bonjour à tout le monde !\n » ;
retourner SORTIE_SUCCÈS ;
}
Some languages have better internationalization support than C++. For example, here's a program in LOGO (not to be confused with LOGO of course).
pour exemple
répète 18 [av 5 td 10]
td 60
répète 18 [av 5 td 10]
fin
I'm trying to compile this really basic program.
This is not a BASIC program, so Visual Studio does not know what to do with it.
In addition, on a French system, you need to pass a programme to the compiler.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With