טיפול ב Console ב VC++
אני מעוניין שתי מחרוזות במקומות שונים הראשונה ב (1,1) והשניה ב (10,10) אבל שתהן מודפסות ב מיקום השני למה????????? אין לי מושג?. מה עשיתי לא נכון אני משתמש ב Console Functions ועוד שאלה האם יש אפשרות לחלק את המסך ל מספר חלקים ולטפל בכל אחד לבד #include <iostream.h> #include <windows.h> void main(){ COORD point,point1; point.X = 1; point.Y = 1; SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE),point); cout<<"xxx"; point1.X = 10; point1.Y = 10; SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE),point1); cout<<"yyy"; }
אני מעוניין שתי מחרוזות במקומות שונים הראשונה ב (1,1) והשניה ב (10,10) אבל שתהן מודפסות ב מיקום השני למה????????? אין לי מושג?. מה עשיתי לא נכון אני משתמש ב Console Functions ועוד שאלה האם יש אפשרות לחלק את המסך ל מספר חלקים ולטפל בכל אחד לבד #include <iostream.h> #include <windows.h> void main(){ COORD point,point1; point.X = 1; point.Y = 1; SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE),point); cout<<"xxx"; point1.X = 10; point1.Y = 10; SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE),point1); cout<<"yyy"; }