‘壹’ 我爱你 怎么用c语言表示
#include <stdio.h>
int main()
{
printf("I Love you !\n");
return 0;
}
‘贰’ C语言编程能不能编个显示是I LOVE YOU的图案啊,高手帮帮忙~~
采用数组,
初始化是一个你想要的图案
进行遍历输出
代码如下:
#include<stdio.h>
void main()
{
char name[30];
gets(name); 拍衫 //输入对方姓名。
char heart[][11]={{' ',' '袭岁腔,' ','*','*'},{' ',' ','*',' ',' ','*'},{' ','*',' ',' ',' ',' ','*'},
{' ','*',' ',' ',' ',' ',' ','*'},{' ',' ','*',' ',' ',' ',' ',' ','*'},{' ',' ',' ','*',' ',' ',' ',' ',' ','*'},
{' '雀轿,' ','*',' ',' ',' ',' ',' ','*'},{' ','*',' ',' ',' ',' ',' ','*'},{' ','*',' ',' ',' ',' ','*'},
{' ',' ','*',' ',' ','*'},{' ',' ',' ','*','*'}};
int i,j;
for(i=0;i<11;i++)
{
for(j=0;j<11;j++)
printf("%c",heart[j][i]);
printf(" ");
}
printf("I Love You,%s. ",name);
}
‘叁’ 程序员的表白代码
程序员的表白代码
第一条语言:Java代码翻译:直到死之前,每天爱你多一点代码:while(lifeend){love++;}
第二条语言:C语言代码翻译:.代码:#incldestdio.hintmain(){printf(HelloWorldn);retrn0;}//.
第三条语言:python代码翻译:山无陵,江水为竭,冬雷震震,夏雨雪,天地合,乃敢与君绝!代码:if(mountain.arris==None):if(river.water==None):if(winter.thunder==True):if(summer.snow==True):if(sky.height==ground.height):i.withyou=Falseelse:i.withyou=True.
第四条语言:Erlang代码代码翻译:深圳相遇,至死不渝代码:-mole(you_and_me).-export([start/1]).-record(person,{name,address,status}).start(Name)-one_world(Name).one_world(Name)keep_to_love_you(Person).say_goodbye(Person)-io:format(~p:seeyounextworld!~n,[Person#person.name]).see_you_next_world(Name)-one_world(Name).
第五条语言:Java语言代码翻译:爱你到天荒地老代码:while(!world.destroy){System.out.println(iloveyou);}
‘肆’ 在C语言里,怎么做“我爱你”的一个程序呢
#include<stdio.h>
#include<stdlib.h>
intmain(void)
{
puts("我爱你");
returnEXIT_SUCCESS;
}
(4)c语言iloveyou扩展阅读
C++的表达方式
usingnamespaceSystem;
voidmain()
{
Console::WriteLine("我爱你");
}
‘伍’ c语言输入一串字符,将单词倒着输出,例 输入 I Love You 输出 You Love I
参考代码:
#include<stdio.h>
#include<string.h>
voidmain()
{
inti,j,k;
charstr[300],str1[30];
gets(str);
j=strlen(str);
k=0;
for(i=j-1;i>=0;i--)
{
if(str[i]!='')
str1[k++]=str[i];
else
旅搭迹枝世 {
str1[k]='