×

c语言颜色代码 颜色代码 颜色

求C语言颜色代码?求C语言颜色代码大全,谢谢!

admin admin 发表于2022-07-15 16:46:43 浏览121 评论0

抢沙发发表评论

求C语言颜色代码

#include 《string.h》
main()
{char str1;
int i,j;
gets(str1);
for(i=0;str1!=’\0’;i++)
 if(str1《=’Z’)
  str2;
 else if(str1《=’z’)
  str2;
 else str2;
str2=’\0’;
puts(str1);
puts(str2);
getch();
}

求C语言颜色代码大全,谢谢!


已经按你的要求重新改写,简化。
本题一个完整的c程序如下,程序在tc2.0和win-tc下运行通过,结果正确。
#include《stdio.h》
#include《stdlib.h》
#include《conio.h》
main()
{float pi=3.14159265,r;
textbackground(YELLOW);/* 设置背景色为黄色,注意颜色应该大写,可更改 */
textcolor(RED); /* 设置文件颜色为红色,可更改 */
clrscr(); /* 清屏,使设置生效 */
printf(“enter radius:“);
scanf(“%f“,&r);
if(r《0)
printf(“Enter Error!\n“);
else
printf(“r=%.2f,c=%.2f,area=%.2f\n“,r,2*pi*r,pi*r*r);
system(“pause“);/* 暂停,按任一键继续 */
}

---------------------------------------------------------------------
---------------------------------------------------------------------
以下仅供参考。可以连续输入8次,每次得到的颜色不同,当然可以改变for (color = 0; color 《 8; color++)中color《8的数值来控制输出的颜色数。
#include《stdio.h》
#include《stdlib.h》
#include《conio.h》
#include《graphics.h》
main()
{float pi=3.14159265,r;
int color;
for (color = 0; color 《 8; color++)
{
textbackground(color);
cprintf(“This is color %d\r\n“, color);
cprintf(“enter radius:“);
scanf(“%f“,&r);
if(r《0)
cprintf(“Enter Error!\r\n“);
else
cprintf(“r=%.2f,c=%.2f,area=%.2f\r\n“,r,2*pi*r,pi*r*r);
cprintf(“Press any key to continue\r\n“);
getch();
}
system(“pause“);
}
你可以参阅:
http://zhidao.baidu.com/question/86663727.html
http://zhidao.baidu.com/question/79605706.html
http://zhidao.baidu.com/question/79605348.html

24色标准色卡名称是什么

基本色调为黄色,橙色,红色,紫色,蓝色,蓝色,绿色,绿色,黄色和绿色,每个部分分为3个部分,每个部分形成24个分割彩色环,从1号到24no.24种种种颜色的24种种种颜色的名称:24种色环:请参阅下图:-颜色代码

三色群

三色组是颜色环上的任何三种颜色。当使用三色方案中的三色组时,观察者将得到某种张力,因为这三种颜色将与强对比度进行比较。基础颜色和次要颜色都是三种颜色。

暖色

温暖的颜色由红色的色调组成,例如红色,橙色和黄色。这种颜色选择使人们具有温暖,舒适和充满活力的感觉。这些颜色产生的视觉效果使观众更加接近观众,并且在页面上更加突出。

冷颜色

冷颜色来自蓝色,例如蓝色,青色和绿色。这些颜色使配色方案稳定且令人耳目一新。它们也远离观众,因此适合页面背景。