one , Direct code :
#include <iostream> #include <windows.h> using namespace std; int main(){
float x,y,a; for(y=1.5;y>-1.5;y=y-0.1){ for(x=-1.5;x<1.5;x+=0.05){ a=x*x+y*y-1;
if(a*a*a-x*x*y*y*y<0.0) cout<<"*";// Meet the requirements in the heart-shaped area , Print "*" else cout<<" ";// Print spaces outside the heart-shaped area }
system("color 04");// The background is black , The character printing color is red cout<<endl; } cout<<" I only love you.
"<<endl; return 0; }
two , The operation results are as follows : 

three , supplement :

The color attribute is specified by two hexadecimal digits : The first corresponds to the background , The second corresponds to the foreground .

Each number can be any of the following values :

    0 = black       8 = grey
    1 = blue       9 = Light blue
    2 = green        A = Light green
    3 = Light green     B = Light green
    4 = gules       C = Light red
    5 = purple       D = lavender
    6 = yellow       E = canary yellow
    7 = white       F = Bright white

  For example, in the code “system(color 04)” So 0= Black background , with 4= Red is the color of printed characters

( What about the strong man ? Fierce man crying )

Technology
©2019-2020 Toolsou All rights reserved,
Dynamic Simple registration login interface HTML+CSS+JQCSS Implement overflow display ellipsis 802.11 CCA and NAV mechanism Programmer refused due to low salary offer,HR become shame , Netizens instantly blew up ..abaqus Value of mass scaling factor _ABAQUS Mass scaling for Java Student information management system console version C Classic topics of language —— Insert a number into the sorted array Computer level 1 multi-point , How many points can I pass the computer test level 1 VINS-Fusion run kitti stereo and stereo+GPS data TS stay vue2 Writing in the project