Click here to Skip to main content
16,017,954 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hola a todos... Soy un estudiante de Analisis de Sistemas de primer nivel, estoy haciendo uso de CODE BLOCKS codeblocks-16.01mingw-setup, para ejercicios con librerias, sin embargo al momento de hacer uso de <stdlib.h> para colocar con los atributos ejemplo : system("color f1") ó system ("cls") la consola no aplica las instrucciones del editor.

Al probar el codigo que es muy sencillo, (HELLO WORD!) , en otras PC, dlicho codigo imprime todas las instrucciones que se genero en el editor.

Por favor alguien de la comunidad que me pueda ayudar para resolver este problema, que imagino esta relacionado a las configuraciones de mi maquina seria importante para poder finalizar mi proyecto...


Coloco el codigo como referencia.
C#
#include <iostream>
#include <stdlib.h>

using namespace std;

int main(){
	system ("color f3");
	cout <<"HOLA MUNDO"<<endl;
	system("pause");
	system("cls");

return 0;
}



Translation:
Hello everyone... I am a student of analysis of systems of first level, I am using CODE BLOCKS codeblocks - 16 01mingw-setup, for exercises with bookstores, however at the time of use < stdlib.h > to place attributes example: system("color f1) ") or system ("cls "") the console does not apply the instructions from the editor. "

When testing the code that (HELLO WORD!), is very simple, in other PC, dlicho code prints the instructions that I generated in the editor.

Someone in the community who can help me to solve this problem, please imagine this related to the settings of my machine would be important in order to finish my project...


I put the code as a reference.

What I have tried:

Reinstalar Code Blocks, buscar informacion sobre librerias. Adicional realice la instalacion de XWidget para Code Blocks lo cual me obligo a realizar cambios en "Simbolo de Sistema para su uso" . No se si eso puede influenciar.

Translation:
Reinstall Code Blocks, search information about libraries. Additional installation XWidget for Code Blocks which forced me to make changes to system "Simbolo for your uso". " Not is if that can influence.
Posted
Updated 3-Sep-17 2:26am
v2
Comments
OriginalGriff 3-Sep-17 2:07am    
Even with the translation - possibly because of the translation, but Google Translate is normally pretty good - I have absolutely no idea what the heck you are talking about, or what problem you are having.
This is an English language site, and we can only accept queries - and provide responses - in that language.

So try to simplify you question and use a translator to convert it to English, then check it by translating that back to your native language. Repeat until you get understandable text. Unless we can understand you clearly, we can't help you!

Use the "Improve question" widget to edit your question and provide better information.

1 solution

It works on my system (Windows 8, VC++ compiler).
Anyway, you may use the Windows Console API, have a look at this example: Using the High-Level Input and Output Functions - Windows Console | Microsoft Docs[^].
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900