【有图有真相!!!】自己正在做的一个游戏物理引擎~~

代码: #include "apue.h" #include <sys/stat.h> int main(int argc, char *argv[]) { int i; struct stat buf; char *ptr; for (i=1; i<argc; i++) { printf("%s: ", argv[i]); if (stat(argv[i], &buf) < 0) { printf("lstat errno\n"); continue; } if (S_ISREG(buf.st_mode)) ptr="regular"; else if (S_ISDIR(buf.st_mode)) ptr="directory"; else if (S_ISCHR(buf.st_...

作者: yts 发布时间: 04-21

makefile文件

代码: #include <stdio.h> void Temperatures (double far) { double cel, kel; while (far != 'q') { cel = 1.8 * far + 32.0; kel = cel + 273.16; printf ("%lf est %.2lf Celfius et %.2lf Kelvin. \n", far, cel, kel); printf ("Entrez encore(q pour quitter):"); scanf ("%lf", &far); } } int main (void) { double n; printf ("Entrez un numero:"); scanf ("%lf"...

作者: ilsoviet1917 发布时间: 04-20

sprintf 编译错误

我想在makefile文件中添加判断@if...then mkdir,如果目录A不存在的话,就创建它。要怎么做啊,高手指点下

作者: zhengwc 发布时间: 04-20

新手请教一个Linux下“undefined reference to“的问题

编译器是gcc,编译下一语句时显示错误,很费解 ... static char host_name[100] = ""; static char user_name[30] = "" get_inform ( host_name, port, user_name, user_passwd ); sprintf ( wait_mess, "Processing connection\nWith server name %s and user %s\nPlease wait...", host_name, user_name ); ... 编译到sprintf那句时显示错误,很费解 mysql_con_gui.c:5: e...

作者: oxangen 发布时间: 04-19

codeblock编译问题

有三个文件:print.h(对print函数的声明)、print.cc(print函数的定义)、main.cc(对print函数的使用) //main.cc #include "print.h" int main() { print(); return 0; }//此时会提示“undefined reference to print()"的错误 //main.c #include "print.cc" int main() { print(); return 0; }//而把print.h换成print.cc后就能成功运行, 有哪位高手能解释一下吗? 小弟...

作者: cheriszhang 发布时间: 04-19

codeblock编译问题

想个自己的项目加入git,于是按照说明操作 代码: git clone ssh://用户名@项目名.git.sourceforge.net/gitroot/项目名/项目名 但是用户名输成别人的了。因为一个用户名还有一个display name,平时登上去看到的是display name,用久了还以为用户名就是这个,而sourceforge上正好有个用户与这个display name 一样。现在用自己的用户名再输一遍 代码: git clone ssh://我的用户...

作者: novesky 发布时间: 04-19

Ubuntu 10.04下手动安装Eclipse CDT手把手教程

问题很简单。。。 就是在下面的这个小程序里,如何实现在用非数值的字符输入时,能提示错误,并且重新开始循环 而不是死循环。。。。。 先谢谢大家 代码: /* 2011年4月16日23:51:31 名称:猜数字小游戏 功能:随机四个十以内的数字,在位置提示(B)和位置以及值提示(A)下猜出它们正确的值以及位置 目标:训练 for 和do while 的循环流程 */ #include <stdlib.h> #include...

作者: hardware 发布时间: 04-18

有什么可以替代source insight????????????????

OpenCV2.1 可以加源安装,详情: https://launchpad.net/~gijzelaar/+archive/opencv2 有配合codeblocks的同学下面这个帖子可以在10.04上安装codebocks10.05 http://www.heiqu.com/show-38128-1.html

作者: yuzh652800 发布时间: 04-17

Ubuntu 10.04下手动安装Eclipse CDT手把手教程

各位同学有没有接触过OpenGL啊,有没有试过用C来编写OpenGL程序啊?有的话请问你们有没有遇到运行OpenGL程序时窗口一闪而过的情况,我很郁闷啊,编译链接都没有问题,就是这个有点怪怪的。并不是一定看不到,如果这个新出现的OpenGL程序的窗口没有位于其它非根窗口的窗口之上的话,那么还是可以显示的,因此我现在每次都要切换到一个新的工作区好让它在没有别的窗口重叠的情...

作者: liu滔 发布时间: 04-16

Makefile:3:***遗漏分隔符。停止 。原来如此......

我在安装这个bin文件时系统提示我这个问题: Unpacking... tail: 无法打开 “+486” 读取数据: 没有那个文件或目录 Checksumming... 1 The download file appears to be corrupted. Please refer to the Troubleshooting section of the Installation Instructions on the download page for more information. Please do not attempt to install this archive file. root@ubu...

作者: 君子好逑 发布时间: 04-12