c++ - How can I add a GUI to my homework? -


I am currently taking intro C ++ in my college. It was a very simple homework in which I had to do program using 3 different ways to output "1 2 3 4" Being before my current skill, how can I add visual interfaces to this program that I wrote? I mean, I want to change colors, add buttons or pictures, or whatever is it possible?

  // Geek Oh // Professor Kahn, Shawabai // 2/9/2014 // HWK 2.17 // (Printing) Write the program that numbers 1 to 4 on the same line , As well as a pair of adjacent numbers separates the BT from each pair. Do this several ways: // a) Use a statement with a stream entry operation // B) Using a statement with four stream entry operators. // c) Use the four statements # Add & lt; Iostream & gt; Int main () {std :: cout & lt; & Lt; "1 2 3 4 \ n"; // ------ & gt; A) std :: cout & lt; & Lt; "1" & lt; "2" & lt; & Lt; "3" & lt; & Lt; "4 \ n"; // ------ & gt; B) std :: cout & lt; & Lt; "1"; // ---------- & gt; C) std :: cout & lt; & Lt; "2"; Std :: cout & lt; & Lt; "3"; Std :: Court & lt; & Lt; For "4" & lt; & Lt; Std :: endl; System ("pause"); Return 0; }  

C ++, as a language, is not aware that color or What is the button

The standard input is only a stream of characters and standard output is a stream of characters, nothing is fancy.

There are environments in which you can control some special aspects (like the color of text), using only "special sequence", "escape sequence", but they only work when You run the program

Runing programs in an environment where these escape sequences are not interpreted, will confuse only production (such as in Windows console).


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -