jdk环境变量的设置

高手帮忙。 myeclipse9 启动提示信息为: Visual Editor Disabled “The Linux WYSIWYG design panel is still under development. To access an experimental version of this design panel restart with the commandline argument -Dlinux.experimental=true” 怎么解决,最重要的为什么会出现这个提示,thanks

作者: munandong 发布时间: 06-13

6个变态的C语言写的Hello World

哪位大牛知道请告知,拜谢! 附件: Screenshot-1.png [ 160.16 KiB | 被浏览 24 次 ]

作者: 流星追月 发布时间: 06-12

我想知道这句话是什么意思

看到kdevelop官方上说可以使用多种语言工作,但是我没找到方法。 请教各位具体步骤?

作者: fanglei03 发布时间: 06-03

Ubuntu eclipse 3.4 启动出现一个小白窗口 急待解决

struct hostent *h; h=gethostbyname(argv[1]); printf("IP Address : %s\n",inet_ntoa(*((struct in_addr *)h->h_addr))) char * inet_ntoa(struct in_addr in) inet_ntoa的参数是一个in_addr的结构体 怎么语句里成了指针? *((struct in_addr *)h->h_addr)最终表示的是什么意思 能否给详细解释一下

作者: God_In_You 发布时间: 06-03

让生物专业的大一小朋友学C语言是不是太痛苦了?

今天在写代码,发现了一个问题! -------------------------- #include <pthread.h> void* thr_fun(void*) { printf("thr_fun"); } pthread_t ntid; int err; ... err = pthread_create(&ntid, NULL, thr_fun, NULL); ... -------------------------- 编译的时候,提示: threadtest.c:15: undefined reference to `pthread_create' 起初,我以为没有这个文件,于是查找了这...

作者: alex_goacross 发布时间: 05-29

[原创]Ubuntu 中学习 C/C++ 编程基础入门教程

在网上复制的代码: 代码: #include <stdio.h> #include <curses.h> #include<unistd.h> int main(void) { initscr(); /*初始化屏幕*/ if(start_color() == OK) /*开启颜色*/ { init_pair(1, COLOR_RED, COLOR_GREEN); /*建立一个颜色对*/ attron(COLOR_PAIR(1)); /*开启字符输出颜色*/ move(LINES/2, COLS/2); waddstr(stdscr, "Yet another Hello, world!"); attroff(COLO...

作者: redlhl 发布时间: 05-26

三角函数怎么引用

找到了某个猜数字程序。猜了若干次,有一次结果是 代码: range[a, b]:1 1000 I think I can guess in 10 times. I guess 500. Is it right(0), smaller(1) or bigger(2)? 2 Bigger, well, I guess 250. Is it right(0), smaller(1) or bigger(2)? 1 Smaller, well, I guess 375. Is it right(0), smaller(1) or bigger(2)? 1 Smaller, well, I guess 437. Is it right(0), s...

作者: vb2vc 发布时间: 05-20

fork问题

我想做的是 在程序中开一个终端,并执行写好的另一个程序。 (1)用execlp("gnome-terminal","gnome-terminal","-x","/home/bear/Desktop/rubbish/s", NULL); 运行时提示 Failed to connect to the session manager: None of the authentication protocols specified are supported。 (2)然后改用system("sudo gnome-terminal /home/bear/Desktop/rubbish/s"); 可以打开终...

作者: bearsiji 发布时间: 05-19

打印问题求高手帮忙

代码如下 1 #include <stdlib.h> 2 #include <stdio.h> 3 4 int main() 5 { 6 pid_t pid; 7 int k=55; 8 9 if(pid=fork()<0) 10 perror("fork error"); 11 12 if(pid==0){ 13 k++; 14 } 15 //system("ps -al"); 16 printf("getpid=%d,pid=%d,kkk=%d\n",getpid(),pid,k); 17 return 0; 18 } 运行后进程号不一样,但变量k都一样被++了 后来吧19行if拍段修改为 9 if((pid=fork(...

作者: songshtao 发布时间: 05-19

求助:关于修改语言

今天小弟没事敲了段代码,但是不知道怎么和实现都不对,在检查无法打开的文件出错后代码退出程序,可后面的打印还是继续打印了,也就是之前突出不起作用,测试在退出后加了打印信息可是没有打印,证明退出是有用的,可if外的打印为还继续打印,没有直接退出,下面是代码 和测试用例 ubuntu 8.04 gcc 4.4的环境 1 #include <stdio.h> 2 #include <stdlib.h> 3 int main(int a...

作者: songshtao 发布时间: 05-19