Ticket #95 (closed defect: fixed)
ProjectComponents syntax error in example?
| Reported by: | anonymous | Owned by: | hans |
|---|---|---|---|
| Priority: | minor | Milestone: | |
| Component: | phing-core | Version: | 2.2.0 |
| Keywords: | documentation | Cc: |
Description
In the file:
/docs/phing_guide/book/chapters/ProjectComponents.html
Under the section, Referencing Types:
Is this a syntax error:
<project>
<fileset id="foo">
<include name="*.php" />
</fileset;>
Note the semicolon in the closing </fileset> tag.
Attachments
Change History
comment:2 Changed 5 years ago by anonymous
#include <stdio.h> void multitable(int count); void menu(); void printmsg(); int main(void) {
menu();
}
void menu() {
printf("maths apps\n"); printf("1.multiplication\n"); printf("2.calculator\n"); printf("3.odd numbers\n"); printf("4.exit\n");
int a; scanf("%d",&a) if(a=1)
{
printmsg();
multitable(6);
} void printmsg() {
printf("table 1-5\n"); multitable(6);
} void multitable(int count) {
int m; m=1; while(m!=count) { printf("multitable %d\n",m); int c,v; c=1; v=0; while(c<13) { v=c*m; printf("%d x %d = %d\n",c,m,v); c++; } m++; printf("Enter a value from kbd"); scanf("%d",&m); }
}
else if(a=2)
{
int x,y,total; x=0; y=0; total=0;
printf("enter your first number:\n"); scanf("%d",&x);
printf("enter the second number:\n"); scanf("%d",&y);
total=x*y; printf("the total is %d\n",total);
return 0;
}
else if(a=3)
{
int x,y;
x=1; while(x!=30) { printf("Enter a number:"); scanf("%d",&x); while(x!=51) { y=x%2; if(y!=0) printf("%d\n",x,y); x++; } } return(0);
}
else if(a=4)
{
return(0);
} } }
comment:3 Changed 5 years ago by anonymous
#include <stdio.h> void multitable(int count); void menu(); void printmsg(); int main(void) {
menu();
}
void menu() {
printf("maths apps\n"); printf("1.multiplication\n"); printf("2.calculator\n"); printf("3.odd numbers\n"); printf("4.exit\n");
int a; scanf("%d",&a) if(a=1)
{
printmsg();
multitable(6);
} void printmsg() {
printf("table 1-5\n"); multitable(6);
} void multitable(int count) {
int m; m=1; while(m!=count) { printf("multitable %d\n",m); int c,v; c=1; v=0; while(c<13) { v=c*m; printf("%d x %d = %d\n",c,m,v); c++; } m++; printf("Enter a value from kbd"); scanf("%d",&m); }
}
else if(a=2)
{
int x,y,total; x=0; y=0; total=0;
printf("enter your first number:\n"); scanf("%d",&x);
printf("enter the second number:\n"); scanf("%d",&y);
total=x*y; printf("the total is %d\n",total);
return 0;
}
else if(a=3)
{
int x,y;
x=1; while(x!=30) { printf("Enter a number:"); scanf("%d",&x); while(x!=51) { y=x%2; if(y!=0) printf("%d\n",x,y); x++; } } return(0);
}
else if(a=4)
{
return(0);
} } }

Fixed in r181, thanks!