mozilla 发表于 2005-12-29 16:41:38

#####贴代码不排版者你是否能尊重一下他人的劳动#####

用code功能将代码包含起来,而且代码要保持缩进。
否则别人是不会有心情给你看代码的。
#include <stdio.h>
main()
{
printf("hello world\n");
}

书写格式:
[code]
#include <stdio.h>
main()
{
printf("hello world\n");
}
[/code]

和生成的格式

#include <stdio.h>
main()
{
    printf("hello world\n");
}

哪个看得舒服?

特别是代码比较长的,不排版不予理睬。

这也是对他人劳动的起码尊重。

nanhey 发表于 2006-4-25 15:06:31

[code]
//test
WorkflowStore store = getPersistence();
            WorkflowEntry entry = store.findEntry(id);

            if (entry == null) {
                throw new IllegalArgumentException("No such workflow id " + id);
            }

            if (entry.getState() != WorkflowEntry.ACTIVATED) {
                return new int;
            }

            WorkflowDescriptor wf = getConfiguration().getWorkflow(entry.getWorkflowName());

            if (wf == null) {
                throw new IllegalArgumentException("No such workflow " + entry.getWorkflowName());
            }
[/code]

nanhey 发表于 2006-4-25 15:07:31


//test
WorkflowStore store = getPersistence();
WorkflowEntry entry = store.findEntry(id);

if (entry == null) {
throw new IllegalArgumentException("No such workflow id " + id);
}

if (entry.getState() != WorkflowEntry.ACTIVATED) {
return new int[0];
}

WorkflowDescriptor wf = getConfiguration().getWorkflow(entry.getWorkflowName());

if (wf == null) {
throw new IllegalArgumentException("No such workflow " + entry.getWorkflowName());
}

忘记过去 发表于 2006-4-26 08:55:32

好的,我们不知道可以这么书写代码,请原谅!

xhjj84 发表于 2006-5-22 16:45:57

没发之前 在内容输入框中是缩进的 发送之后显示就不缩进了

mozilla 发表于 2006-5-22 22:00:25

缩进最好用空格

stlxv 发表于 2006-9-4 12:57:45

我试试

int main()
{ printf("asdf");
return 0; }


int main()
{
printf("asdf");
return 0; }

stlxv 发表于 2006-9-4 12:58:38

原来没有自动缩进的呀!

primary_lg 发表于 2006-9-28 23:12:45

以前不知道这个概念,以后一定注意

顺便试一试看看:

-------------------------------------------------------------
--------------------------------------------------------------

#include <stdio.h>
main()
{
    printf("Hello World!\n");
}

xiayaoguang 发表于 2006-10-4 17:51:54

try


public class Try
{
    public static void main(String []args)
    {
         System.out.println("Hello,linuxfans");
    }
}

mantas 发表于 2006-10-10 20:39:36

试下


int main()
{
         printf("beauty");
         return 0;
}

空格和编辑时看起来不一样宽.

microjunjun 发表于 2006-11-30 16:22:37

test

[code]
#include <iostream>

using namespace std;

int main()
{
cout << "Hello,world." << endl;
return 0;
}
[/code]

microjunjun 发表于 2006-11-30 16:25:35


#include <stdio.h>
main()
{
printf("hello world\n");
}

microjunjun 发表于 2006-11-30 16:34:40


//test

int f(int n)
{
    return n*n;
}

#include <iostream>

using namespace std;

int main()
{
    cout << "Sqat 5 = " << f(5) << endl;
    return 0;
}

suifeng19 发表于 2006-12-3 15:42:15

O也试试

#include <stdio.h>
void main()
{
   prinf("%s", "Hello!");
}
页: [1]
查看完整版本: #####贴代码不排版者你是否能尊重一下他人的劳动#####