Change HTML4 entities to HTML5
< to < > to > & to &
This commit is contained in:
parent
56a4baa60e
commit
b8e7ce7165
105 changed files with 1117 additions and 1117 deletions
30
59-05.html
30
59-05.html
|
|
@ -53,10 +53,10 @@
|
|||
// Sample program to exercise and time the performance of
|
||||
// implementations of WalkTree().
|
||||
// Tested with 32-bit Visual C++ 1.10 under Windows NT.
|
||||
#include <stdio.h>
|
||||
#include <conio.h>
|
||||
#include <stdlib.h>
|
||||
#include <time.h>
|
||||
#include <stdio.h>
|
||||
#include <conio.h>
|
||||
#include <stdlib.h>
|
||||
#include <time.h>
|
||||
#include “tree.h”
|
||||
long VisitCount = 0;
|
||||
void main(void);
|
||||
|
|
@ -68,12 +68,12 @@ void main()
|
|||
int i;
|
||||
long StartTime;
|
||||
// Build a sample tree
|
||||
BuildTree(&RootNode, 14);
|
||||
BuildTree(&RootNode, 14);
|
||||
// Walk the tree 1000 times and see how long it takes
|
||||
StartTime = time(NULL);
|
||||
for (i=0; i<1000; i++)
|
||||
for (i=0; i<1000; i++)
|
||||
{
|
||||
WalkTree(&RootNode);
|
||||
WalkTree(&RootNode);
|
||||
}
|
||||
printf(“Seconds elapsed: %ld\n”,
|
||||
time(NULL) - StartTime);
|
||||
|
|
@ -87,25 +87,25 @@ void BuildTree(NODE *pNode, int RemainingDepth)
|
|||
{
|
||||
if (RemainingDepth == 0)
|
||||
{
|
||||
pNode->pLeftChild = NULL;
|
||||
pNode->pRightChild = NULL;
|
||||
pNode->pLeftChild = NULL;
|
||||
pNode->pRightChild = NULL;
|
||||
}
|
||||
else
|
||||
{
|
||||
pNode->pLeftChild = malloc(sizeof(NODE));
|
||||
if (pNode->pLeftChild == NULL)
|
||||
pNode->pLeftChild = malloc(sizeof(NODE));
|
||||
if (pNode->pLeftChild == NULL)
|
||||
{
|
||||
printf(“Out of memory\n”);
|
||||
exit(1);
|
||||
}
|
||||
pNode->pRightChild = malloc(sizeof(NODE));
|
||||
if (pNode->pRightChild == NULL)
|
||||
pNode->pRightChild = malloc(sizeof(NODE));
|
||||
if (pNode->pRightChild == NULL)
|
||||
{
|
||||
printf(“Out of memory\n”);
|
||||
exit(1);
|
||||
}
|
||||
BuildTree(pNode->pLeftChild, RemainingDepth - 1);
|
||||
BuildTree(pNode->pRightChild, RemainingDepth - 1);
|
||||
BuildTree(pNode->pLeftChild, RemainingDepth - 1);
|
||||
BuildTree(pNode->pRightChild, RemainingDepth - 1);
|
||||
}
|
||||
}
|
||||
//
|
||||
|
|
|
|||
Loading…
Reference in a new issue