这是make命令的脚本
你的compile看起来好象是让你修改make脚本的,不是编译C源程序的
看看HELP里的解释,或看看菜单里有没有build或make,
试一下
可能第一次使用Dev
C++需要你确定make脚本(makefile文件)
否则$(CPP),
$(LIBS)等没有定义
import javaawt;
import javaappletApplet;
import javautilCalendar;
import javatextSimpleDateFormat;
import javautilDate;
public class ClockApplet extends Applet implements Runnable //Applet支持线程
{
private Thread athread; //线程
private SimpleDateFormat sdateformat; //日期格式
public void init()
{
thissetBackground(Colorwhite);//背景颜色设为白色
thisathread = null;
}
public void paint(Graphics g)
{
thissdateformat = new SimpleDateFormat("hh时mm分ss秒");
gdrawString(thissdateformatformat(new Date()),25,131);
Calendar rightnow = CalendargetInstance();
int second = rightnowget(CalendarSECOND);
int minute = rightnowget(CalendarMINUTE);
int hour = rightnowget(CalendarHOUR);
//半径
int R_H = 20,R_M = 4,R_S = 4;
//时针的坐标
//x ====(9-3)[0-6] (3-9)[6-0]
//y ====(12-6)[0-6] (6-12)[6-0]
int H_x ;
int H_y;
//x
if(hour == 0)
{
hour = 12;
}
if( hour >= 3 && hour <= 9 )
{
H_x = R_HMathabs(hour - 9);
}
else
{
if(hour > 9)
{
H_x = R_HMathabs(hour - 9);
}
else
{
H_x = R_HMathabs(hour+3);
}
}
//y
if( hour >= 6 && hour <= 12 )
{
H_y = R_HMathabs(hour - 12);
}
else
{
H_y = R_Hhour;
}
//分针的坐标
int M_x;
int M_y;
if(minute == 0)
{
minute = 60;
}
if( minute >= 15 && minute <= 45 )
{
M_x = R_MMathabs(minute - 45);
}
else
{
if(minute > 45)
{
M_x = R_MMathabs(minute - 45);
}
else
{
M_x = R_MMathabs(minute+15);
}
}
//y
if( minute >= 30 && minute < 60 )
{
M_y = R_MMathabs(minute - 60);
}
else
{
M_y = R_Mminute;
}
//秒针的坐标
int S_x;
int S_y;
if(second == 0)
{
second = 60;
}
if( second >= 15 && second <= 45 )
{
S_x = R_SMathabs(second - 45);
}
else
{
if(second > 45)
{
S_x = R_SMathabs(second - 45);
}
else
{
S_x = R_SMathabs(second+15);
}
}
//y
if( second >= 30 && second <= 60 )
{
S_y = R_SMathabs(second - 60);
}
else
{
S_y = R_Ssecond;
}
// gdrawString(StringvalueOf(second),25,50);
// gdrawString(StringvalueOf(minute),25,60);
// gdrawString(StringvalueOf(hour),25,70);
// gdrawString(StringvalueOf(H_x),25,80);
// gdrawString(StringvalueOf(H_y),25,90);
gdrawOval(0,0,120,120);//距离相差10像素
gsetColor(ColordarkGray);
gdrawString("9",5,65);
gdrawString("3",110,65);
gdrawString("12",55,15);
gdrawString("6",55,115);
gdrawString("1",80,20);
gdrawString("2",100,40);
gdrawString("4",100,90);
gdrawString("5",80,110);
gdrawString("7",30,110);
gdrawString("8",10,90);
gdrawString("10",10,40);
gdrawString("11",30,20);
gsetColor(Colorred);
gdrawLine(60,60,H_x,H_y);//前一个点表示起点,另一个表示终点
gsetColor(Colorblue);
gdrawLine(60,60,M_x,M_y);
gsetColor(Coloryellow);
gdrawLine(60,60,S_x,S_y);
}
public void start()
{
if(athread == null)
{
athread = new Thread(this);
athreadstart();
}
}
public void stop()
{
if(athread != null)
{
athreadinterrupt();
athread = null;
}
}
public void run()
{
while(athread != null)
{
repaint();
try
{
athreadsleep(1000);
}
catch(InterruptedException e)
{
}
}
}
}
以上就是关于第一次些C语言的程序,用DEV C++写的,不能compile好像,看不懂……全部的内容,包括:第一次些C语言的程序,用DEV C++写的,不能compile好像,看不懂……、怎么用JAVA编程实现实时动态运行的模拟时钟、等相关内容解答,如果想了解更多相关内容,可以关注我们,你们的支持是我们更新的动力!
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)