#####贴代码不排版者你是否能尊重一下他人的劳动#####
用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");
}
哪个看得舒服?
特别是代码比较长的,不排版不予理睬。
这也是对他人劳动的起码尊重。 [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]
//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());
}
好的,我们不知道可以这么书写代码,请原谅! 没发之前 在内容输入框中是缩进的 发送之后显示就不缩进了 缩进最好用空格 我试试
int main()
{ printf("asdf");
return 0; }
int main()
{
printf("asdf");
return 0; }
原来没有自动缩进的呀! 以前不知道这个概念,以后一定注意
顺便试一试看看:
-------------------------------------------------------------
--------------------------------------------------------------
#include <stdio.h>
main()
{
printf("Hello World!\n");
}
try
public class Try
{
public static void main(String []args)
{
System.out.println("Hello,linuxfans");
}
}
试下
int main()
{
printf("beauty");
return 0;
}
空格和编辑时看起来不一样宽.
test
[code]#include <iostream>
using namespace std;
int main()
{
cout << "Hello,world." << endl;
return 0;
}
[/code]
#include <stdio.h>
main()
{
printf("hello world\n");
}
//test
int f(int n)
{
return n*n;
}
#include <iostream>
using namespace std;
int main()
{
cout << "Sqat 5 = " << f(5) << endl;
return 0;
}
O也试试
#include <stdio.h>
void main()
{
prinf("%s", "Hello!");
}
页:
[1]