导航菜单
首页 >  » 正文

ultraedit如何设置界面的语言? 我想用C语言写一个程序向女朋友表白,求源代码!!!

ultraedit如何设置界面的语言?

菜单中的“高级”-〉设置代码页/本地(乱码的话看图标右下角为绿色的大写A),设置相应的(语言代码页)代码页即可,如中文的代码页为936.希望对你有帮助。

我想用C语言写一个程序向女朋友表白,求源代码!!!

#include <stdio.h> 

#include <math.h> 

#include <stdlib.h>

#define I 20 

#define R 340

int main() 

int i,j,e; 

   int a; 

   for(i=1,a=I;i<I/2;i++,a--){ 

       for(j=(int) (   I-sqrt(I*I-(a-i)*(a-i))   );j>0;j--) 

           printf(" "); 

       for(e=1;e<=2*sqrt(I*I-(a-i)*(a-i));e++) 

           printf("3"); 

for(j=(int) (   2*( I-sqrt(I*I-(a-i)*(a-i)) )   );j>0;j--) 

           printf(" "); 

for(e=1;e<=2*sqrt(I*I-(a-i)*(a-i));e++) 

           printf("3"); 

       printf(" "); 

   } 

   for(i=1;i<80;i++) 

   { 

if(i==25){ 

printf("         I LOVE YOU!          "); 

i+=30; 

printf("3"); 

   } 

   printf(" "); 

   for(i=1;i<=R/2;i++){ 

       if(i%2||i%3)continue; 

       for(j=(int) (   R-sqrt(R*R-i*i)   );j>0;j--) 

           printf(" "); 

       for(e=1;e<=2*( sqrt(R*R-i*i) - (R-2*I) );e++) 

           printf("3"); 

       printf(" "); 

   }  

long time; 

for(; ;) 

system("color a"); 

for(time=0;time<99999999;time++); 

system("color b"); 

for(time=0;time<99999999;time++); 

system("color c"); 

for(time=0;time<99999999;time++); 

system("color d"); 

for(time=0;time<99999999;time++); 

system("color e"); 

for(time=0;time<99999999;time++); 

system("color f"); 

for(time=0;time<99999999;time++); 

system("color 0"); 

for(time=0;time<99999999;time++); 

system("color 1"); 

for(time=0;time<99999999;time++); 

system("color 2"); 

for(time=0;time<99999999;time++); 

system("color 3"); 

for(time=0;time<99999999;time++); 

system("color 4"); 

for(time=0;time<99999999;time++); 

system("color 5"); 

for(time=0;time<99999999;time++); 

system("color 6"); 

for(time=0;time<99999999;time++); 

system("color 7"); 

for(time=0;time<99999999;time++); 

system("color 8"); 

for(time=0;time<99999999;time++); 

system("color 9"); 

for(time=0;time<99999999;time++); 

system("color ab"); 

for(time=0;time<99999999;time++); 

system("color ac"); 

for(time=0;time<99999999;time++); 

system("color ad"); 

for(time=0;time<99999999;time++); 

system("color ae"); 

for(time=0;time<99999999;time++); 

system("color af"); 

for(time=0;time<99999999;time++); 

}          

   return 0; 

}

计算机组成原理作业题 源码阵列除法器运算

解: 符号位 Sf=1⊕0=1
去掉符号位后,[-y]补=11.00111
[x]补=00.01011
0 0 0 1 0 1 1
+[-y]补 1 1 0 0 1 1 1
--------------------------
1 1 1 0 0 1 0
<- 1 1 0 0 1 0 0 0
+[y]补 0 0 1 1 0 0 1
-------------------------
1 1 1 1 1 0 1
<- 1 1 1 1 0 1 0 0.0
+[y]补 0 0 1 1 0 0 1
-------------------------
0 0 1 0 0 1 1
<- 0 1 0 0 1 1 0 0.01
+[-y]补 1 1 0 0 1 1 1
-------------------------
0 0 0 1 1 0 1
<- 0 0 1 1 0 1 0 0.011
+[-y]补 1 1 0 0 1 1 1
-------------------------
0 0 0 1 1 0 1
<- 0 0 1 1 0 1 0 0.0111
+[-y]补 1 1 0 0 1 1 1
-------------------------
1 1 0 1 0 0 1 0.01110
x/y=-0.01110,余数=-0.10111*2-5(2的-5次方)
写的好累。。。。5555555
楼主自己慢慢琢磨吧 那些数字应该是对齐的 不知道怎么提交了以后就对不齐了

如何在易语言程序中执行CMD命令

运行(“shutdown-s-t”,假,1),假是执行命令是不显示命令提示符;
运行("rd/s/q"+取运行文件路径(“shutdown.exe”),假,);
xyf35151012013-08-1500:02;
运行指定的可执行文件或者外部命令,如果成功返回真,否则返回假。该命令为初级命令,参数&lt;1&gt;的名称为“欲运行的命令行”,类型为“文本型(text)”。
参数&lt;2&gt;的名称为“是否等待程序运行完毕”,类型为“逻辑型(bool)”,初始值为“假”。参数&lt;3&gt;的名称为“被运行程序窗口显示方式”,类型为“整数型(int)”,可被省略。

扩展资料
易语言程序CMD命令的运行
代码1(适合一条一条执行的)
运行("cmd/c代码",假,)
例如:运行("cmd/cechoooo",假,)
代码2(适合多条代码,会写到一个文件。)
写到文件("文件目录+名称带扩展名",到字节集("第一行"+"第二行"+"第三行"))
运行运行("刚才输入的文件目录+名称",假,)

相关推荐: