Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- void ConsolePrint(const char* str, int Colour);
- void ConsolePrint(int Y, int X, const char* str, int Colour);
- /////////////////////////////////////////////////////////////
- void _horisont(int nStr, int nPos, int n)
- {
- for(int i = 0; i < n; i++)
- {
- ConsolePrint(nStr, nPos+i, "*", 11);
- }
- }
- /////////////////////////////////////////////////////////////
- void _vert(int nStr, int nPos, int n)
- {
- for(int i = 0; i < n; i++)
- {
- ConsolePrint(nStr+i, nPos, "|", 11);
- }
- }
- /////////////////////////////////////////////////////////////
- main()
- {
- ConsolePrint("SONY", 12);
- _horisont( 7, 35, 14);
- _horisont(17, 35, 14);
- _vert(8, 35, 9);
- _vert(8, 48, 9);
- ConsolePrint(" ", 7);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement