+ 1

How can i get a whole text using class ?

For example the explain for loops i wanna write acode that can print out the explanation for each loop What i wanna say it is that i wanna design a program as solo lean that can explain loops as example how can i write the code actually I'm a student and this is the first project for me

13th Dec 2020, 12:43 PM
Ahmed Alyousofi
Ahmed Alyousofi - avatar
7 Antworten
+ 2
Sorry I didn't completely Understand your Question .Could u describe .
13th Dec 2020, 12:48 PM
Alphin K Sajan
Alphin K Sajan - avatar
+ 2
Ahmed Alyousofi Still its not clear .What i understood is that u need to output some definition of loops as text .If thats the case then u can display text using cout stmt . Check this lesson : https://www.sololearn.com/learn/CPlusPlus/1603/
13th Dec 2020, 1:39 PM
Alphin K Sajan
Alphin K Sajan - avatar
+ 1
The header file graphics.h contains outtextxy() function which displays the text or string at a specified point (x, y) on the screen. Syntax : void outtextxy(int x, int y, char *string); where, x, y are coordinates of the point and, third argument contains the address of string to be displayed Check this : https://www.geeksforgeeks.org/outtextxy-function-c/
13th Dec 2020, 1:53 PM
Alphin K Sajan
Alphin K Sajan - avatar
+ 1
Ahmed Alyousofi Ya that's it .Wlcm
13th Dec 2020, 1:56 PM
Alphin K Sajan
Alphin K Sajan - avatar
0
i wanna design a program as a project l'm still a student and this is the first program for me and what i wanna say it is that what is the cade that can print out a text , for example we you inter loops here in solo learn you find explanation for each loop this is my goal how can do this to give me this explanation you find explaiation
13th Dec 2020, 1:23 PM
Ahmed Alyousofi
Ahmed Alyousofi - avatar
0
That's what i meant put i wanna it to be using class by settextout function in graphics
13th Dec 2020, 1:42 PM
Ahmed Alyousofi
Ahmed Alyousofi - avatar
0
Thanks sir That's all about is that right ?
13th Dec 2020, 1:55 PM
Ahmed Alyousofi
Ahmed Alyousofi - avatar