Search Tools Links Login

Bust the cache!


This code allows you to force a page to reload from the server, rather than the user's browser cache. You can use this to make sure the content the user sees is always current.
http://www.truegeeks.com/asp/mam/osdoc/osframe.asp

Original Author: Found on the World Wide Web

Code

/* Jason Boxall 1/21/96 CSC 131 Lab #9           */
/* This program uses a 2D array and implements it as a queue */
#include
#include
void enqueue(char [][15],int);
void dequeue(char [][15],int);
void display(char [][15],int);
void main()
{
char names[10][15]={"Ed Brown","Ann Smith","Sue Jones"};
int count=3;
puts("The original queue is as follows:");
display(names,count);
puts("After dequeuing, the queue is as follows:");
dequeue(names,--count);
display(names,count);
enqueue(names,++count);
puts("After enqueuing, the queue is as follows:");
display(names,count);
}
void display(char n[][15],int count)
{
  int i;
  for(i=0;i   printf("%s ",(n+i));
  puts("");
}
void enqueue(char n[][15],int count)
{
puts("Enter a name:");
gets(n[count-1]);
puts("");
}
void dequeue(char m[][15],int count)
{
int i;
for(i=0;i<=count;++i)
  strcpy(m[i],m[i+1]);
}

About this post

Posted: 2002-06-01
By: ArchiveBot
Viewed: 99 times

Categories

ASP/ HTML

Attachments

No attachments for this post


Loading Comments ...

Comments

No comments have been added for this post.

You must be logged in to make a comment.