- js27115 的博客
iloveyou:)
- @ 2025-12-13 10:23:16
在已经毕业的学长U盘里翻出来一个文件,据说是学长以前写给crush的。
#include<iostream>
#include<string>
#include<cstdlib>
using namespace std;
int main(){
int c=8;
system("color 0c");
string str="I LOVE YOU!";
for(float i=2.5;i>-2.0;i-=0.12){
for(float j=-2.5;j<2.1;j+=0.05){
float a=i*i+j*j-4;
if(a*a*a-j*j*i*i*i<-0.0){
int n=c%str.length();
putchar(str.at(n));
c++;
}
else
printf(" ");
}
printf("\n");
}
system("pause");
return 0;
}
大家可以自己试一下