GIDForums  

Go Back   GIDForums > Computer Programming Forums > C Programming Language
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 09-Jul-2006, 16:59
Cecil Cecil is offline
New Member
 
Join Date: May 2006
Posts: 10
Cecil is on a distinguished road

Shapes Functions Version 2 - Arrays!


If you don't know the last little challenge issued, here is the first thread:
http://www.gidforums.com/t-10450.html


Basically, the new version of this will include naming shapes and assigning values to them. I'll copy and paste the general information about the next 'version' to this:

Problem: Array of Shapes
This nested-menu driven program will repeatedly do the following until user requests quit: get the user’s choice and call the appropriate menu. Then in this inner menu, get the user’s choice for the subtask and call the appropriate functions to produce and output the requested results.

The differences from the last one are:
1. Cube option is removed for the purposes of simplicity
2. When entered a shape menu (Cylinder or Sphere), we are allowed to create shapes and name them. The names of the shapes will be single case sensitive characters from the English alphabet (26*2 = 52 different shapes can be defined in each menu).





Main Menu will be the following:
1 Cylinder Menu
2 Sphere Menu
3 quit

Cylinder Menu will be the following:
1 Define a cylinder
2 Surface Area
3 Circumference
4 Volume
5 List all Cylinders
6 List Available Cylinder Names
7 Swap uppercase and lowercase Names
8 back to Main Menu

Sphere Menu will be the following:
1 Define a Sphere with radius
2 Define a Sphere with volume
3 Volume
4 List all Spheres
5 List Available Sphere Names
6 Swap uppercase and lowercase Names
7 back to Main Menu



Sample Run

1 Cylinder Menu
2 Sphere Menu
3 quit
1
1 Define a cylinder
2 Surface Area
3 Circumference
4 Volume
5 List all Cylinders
6 List Available Cylinder Names
7 Swap uppercase and lowercase Names
8 back to Main Menu
2
You have not defined ANY cylinders yet. Try again.
1 Define a cylinder
2 Surface Area
3 Circumference
4 Volume
5 List all Cylinders
6 List Available Cylinder Names
7 Swap uppercase and lowercase Names
8 back to Main Menu
1
What is the name of the cylinder: a
What is the radius and the height: 1 2
Done!
1 Define a cylinder
2 Surface Area
3 Circumference
4 Volume
5 List all Cylinders
6 List Available Cylinder Names
7 Swap uppercase and lowercase Names
8 back to Main Menu
1
What is the name of the cylinder: a
Overwrite the existing cylinder a [radius: 1, height: 2]?
y
What is the radius and the height: 3 4
Done!
1 Define a cylinder
2 Surface Area
3 Circumference
4 Volume
5 List all Cylinders
6 List Available Cylinder Names
7 Swap uppercase and lowercase Names
8 back to Main Menu
4
What is the name of the cylinder: a
The cylinder’s volume is 112.
1 Define a cylinder
2 Surface Area
3 Circumference
4 Volume
5 List all Cylinders
6 List Available Cylinder Names
7 Swap uppercase and lowercase Names
8 back to Main Menu
4
What is the name of the cylinder: A
Cylinder A is undefined. Try again.
1 Define a cylinder
2 Surface Area
3 Circumference
4 Volume
5 List all Cylinders
6 List Available Cylinder Names
7 Swap uppercase and lowercase Names
8 back to Main Menu
6
ABCDEFGHIJKLMNOPQRSTUVWXYZbcdefghijklmnopqrstuvwxy z
***(Does not matter in which order these letters are written as long as you print all of the undefined ones)
1 Define a cylinder
2 Surface Area
3 Circumference
4 Volume
5 List all Cylinders
6 List Available Cylinder Names
7 Swap uppercase and lowercase Names
8 back to Main Menu
1
What is the name of the cylinder: A
What is the radius and the height: 3 8
Done!
1 Define a cylinder
2 Surface Area
3 Circumference
4 Volume
5 List all Cylinders
6 List Available Cylinder Names
7 Swap uppercase and lowercase Names
8 back to Main Menu
5
A [radius: 3, height: 8]
a [radius: 3, height: 4]
***(Does not matter in which order these letters are written as long as you print all of the defined ones)
1 Define a cylinder
2 Surface Area
3 Circumference
4 Volume
5 List all Cylinders
6 List Available Cylinder Names
7 Swap uppercase and lowercase Names
8 back to Main Menu
7
Done!
1 Define a cylinder
2 Surface Area
3 Circumference
4 Volume
5 List all Cylinders
6 List Available Cylinder Names
7 Swap uppercase and lowercase Names
8 back to Main Menu
6
BCDEFGHIJKLMNOPQRSTUVWXYZbcdefghijklmnopqrstuvwxyz
1 Define a cylinder
2 Surface Area
3 Circumference
4 Volume
5 List all Cylinders
6 List Available Cylinder Names
7 Swap uppercase and lowercase Names
8 back to Main Menu
5
A [radius: 3, height: 4]
a [radius: 3, height: 8]
1 Define a cylinder
2 Surface Area
3 Circumference
4 Volume
5 List all Cylinders
6 List Available Cylinder Names
7 Swap uppercase and lowercase Names
8 back to Main Menu
8
1 Cylinder Menu
2 Sphere Menu
3 quit
1
1 Define a cylinder
2 Surface Area
3 Circumference
4 Volume
5 List all Cylinders
6 List Available Cylinder Names
7 Swap uppercase and lowercase Names
8 back to Main Menu
2
You have not defined ANY cylinders yet. Try again.
1 Define a cylinder
2 Surface Area
3 Circumference
4 Volume
5 List all Cylinders
6 List Available Cylinder Names
7 Swap uppercase and lowercase Names
8 back to Main Menu
8
1 Cylinder Menu
2 Sphere Menu
3 quit
3
Thank you!






That is the basics. The problem that I am encountering is in the field of arrays. I'm first looking at the cylinder menu before advancing on to the sphere menu (which is why the sphere code probally won't have any use for now, that is still unmodified from the last project)

Now, so far the program compiles correctly, but when I go to link it I need to first define two functions. swap and init. Here is the code so far:

CPP / C++ / C Code:
#include <stdlib.h>
#include <stdio.h>
#include <math.h>

#define PI 3.1

int round(double d)
{
  return (int)(d+0.5);
}

void swap(int *i, int *j)
{
 int temp;

 temp = *i;
 *i = *j;
 *j = temp;
}

void init(int list[], int length, int val)
{
int i;
for (i=0;i<length;i++)
	list[i] = val; //set all the arrays to the value
}

int getindex(char c)
{
if (isupper(c)) 
 return c - 'A';      
else 
 return c - 'a' + 26;	
}

char getletter(int index)
{
  if (index>=26) return index - 'A';
  else return 'A'+index;
}


void menu();
void cylinder();
void cylinder_menu();
void sphere();
void sphere_menu();


void cylinder1(int *radius, int *height);
void cylinder2(int radius, int height);
void cylinder3(int radius, int height);
void cylinder4(int radius, int height);
void cylinder5(int radius[], int height[]);
void cylinder6(int height[]);
void cylinder7(int radius[], int height[]);


int sphere1();
int sphere2();
void sphere3(int radius);
void sphere4(int radius[]);
void sphere5(int radius[]);
void sphere6(int radius[]);


int main()
{
    int choice;
    menu();
    scanf("%d", &choice);

    while (choice != 3) 
	  {

         if (choice == 1)
              cylinder();
         else if (choice == 2)
              sphere();
         else if (choice != 3)
              printf("Sorry, please enter your choice again.\n");

         menu();
         scanf("%d", &choice);
     }
}


void menu()
{
  printf("1 Cylinder Menu\n");
  printf("2 Sphere Menu\n");
  printf("3 quit\n");
}
void cylinder()
{

	int radius[52];   	  //radius will be -1 for undefined
	int height[52];        //height will be -1 for undefined
	int index, choice, totaldefined=0;
	char c,dummy;
	
	init(height, 52, -1);  //make them to -1
	//}
	cylinder_menu();
	scanf("%d", &choice);
	while (choice != 8) 
	{
	if (choice == 1)
	 {
	
	  printf("what is the name of the cylinder:  ");
	  scanf("%c%c", &dummy, &c);
	
	  index=getindex(c);
	  if (height[index]!=-1)
	  {
	    printf("overwrite the existing cylinder %c [radius:  %d. height: %d]?\n", getletter(c), radius[index], height[index]);
	    scanf("%c%c",&dummy, &c);
	   if (toupper(c)=='Y')
	    {
	     cylinder1(&radius[index],&height[index]);
	     totaldefined++;
	    }
	  }
	 else
	 {
	  cylinder1(&radius[index],&height[index]);
	  totaldefined++;
	 }
	}
	
	else if ((choice>=2)&&(choice<=4))
	if (totaldefined==0) printf("You have not defined ANY cylinders yet.  Try again.\n");
	else
	{
	printf("What is the name of the cylinder:   ");
	scanf("%c%c", &dummy, &c);
	
	index=getindex(c);
	if (height[index] == -1) printf("Cylinder %c is undefined.  Try again.\n",index);
	else if (choice == 2)
		cylinder2(radius[index],height[index]);
	else if (choice == 3)
		cylinder3(radius[index],height[index]);
	else if (choice == 4)
		cylinder4(radius[index],height[index]);
	else if (choice == 5)
		cylinder5(radius,height);
	else if (choice == 6)
		cylinder6(height);
	else if (choice == 7)
		cylinder7(radius,height);
	else if (choice != 8)
		printf("Sorry, please enter your choice again.\n");
	
	cylinder_menu();
	scanf("%d", &choice);
}
}
}

void cylinder_menu()
{
  printf("1 Define a cylinder\n");
  printf("2 Surface Area\n");
  printf("3 Circumference\n");
  printf("4 Volume\n");
  printf("5 List all cylinders\n");
  printf("6 List available cylinder names\n");
  printf("7 Swap lowercase and uppercase names\n");
  printf("8 Back to main menu\n");
}

void cylinder1(int *radius, int *height)
{
  printf("Enter the radius and the height: ");
  scanf("%d %d",radius,height);
  printf("Done!\n");
}

void cylinder2(int radius, int height)
{
  if (radius == -1)
  {
    printf("You have not defined a cylinder yet. Try again.\n");
    //return;
  }
  printf("%d\n", round(PI*2*radius*height));
}

void cylinder3(int radius, int height)
{
  if (radius == -1)
  {
    printf("You have not defined a cylinder yet. Try again.\n");
    return;
  }
  printf("%d\n", round(PI*2*radius));
}
void cylinder4(int radius, int height)
{
  if (radius == -1)
  {
    printf("You have not defined a cylinder yet. Try again.\n");
    return;
  }
  printf("%d\n", round(PI*radius*radius*height));
}
void cylinder5(int radius[], int height[])
{
  int i;
  for (i=0;i<52;i++)
	{
 	 if (height[i] != -1)
 	 printf ("%c [radius:  %d. height: %d]\n" ,getletter(i), radius, height);
	}
}
void cylinder6(int height[])
{
int i;
for (i=0;i<52;i++)
	{
	if (height[i] != -1)
	printf("%c",getletter(i));
	}
}
void cylinder7(int radius[], int height[])
{
 int i;
 for (i=0;i<52;i++)
  {
	 if (height[i] != -1)
	 swap(&radius[i],&radius[i+26]);
    swap(&height[i],&height[i+26]);
  }
}


void sphere()
{

	int radius[52];   	  //radius will be -1 for undefined
	int index, choice, totaldefined=0;
	char c,dummy;
	
	init(radius, 52, -1);  //init to -1
	//}
	sphere_menu();
	scanf("%d", &choice);
	while (choice != 8) 
	{
	if (choice == 1)
	 {
	
	  printf("what is the name of the sphere:  ");
	  scanf("%c%c", &dummy, &c);
	
	  index=getindex(c);
	  if (radius[index]!=-1)
	  {
	    printf("Overwrite the existing sphere %c [radius:  %d]?\n", getletter(c), radius[index]);
	    scanf("%c%c",&dummy, &c);
	   if (toupper(c)=='Y')
	    {
	     sphere1();
	     totaldefined++;
	    }
	  }
	 else
	 {
	  sphere1();
	  totaldefined++;
	 }
	}
	
	else if ((choice>=2)&&(choice<=4))
	if (totaldefined==0) printf("You have not defined ANY spheres yet.  Try again.\n");
	else
	{
	printf("What is the name of the sphere:   ");
	scanf("%c%c", &dummy, &c);
	
	index=getindex(c);
	if (radius[index] == -1) printf("Sphere %c is undefined.  Try again.\n",index);
	else if (choice == 2)
		sphere2();
   else if (choice == 3)
      sphere3(radius[index]);
   else if (choice == 4)
      sphere4(radius);
   else if (choice == 5)
      sphere5(radius);
   else if (choice == 6)
      sphere6(radius);
   else if (choice != 7)
        printf("Sorry, please enter your choice again.\n");

         sphere_menu();
         scanf("%d", &choice);
}
}
}
void sphere_menu()
{
  printf("1 Define a Sphere with radius\n");
  printf("2 Define a Sphere with volume\n");
  printf("3 Volume\n");
  printf("4 List all spheres\n");
  printf("5 List available sphere names\n");
  printf("6 Swap lowercase and uppercase names\n");
  printf("7 Back to main menu\n");
}

int sphere1()
{
  int temp;
  printf("Enter the radius: ");
  scanf("%d",&temp);
  printf("Done!\n");
  return temp;
}

int sphere2()
{
  int volume,radius;
  double temp;
  printf("Enter the desired volume: ");
  scanf("%d",&volume);
  temp=pow(volume/(PI*4/3),1.0/3);
  radius=round(temp);
  printf("Created a sphere with radius %d as the best match.\n",radius);
  return radius;
}

void sphere3(int radius)
{
  if (radius == -1)
  {
    printf("You have not defined a sphere yet. Try again.\n");
    return;
  }
  printf("%d\n", round(PI*4/3*radius*radius*radius));
}


//Precondition: radius is an array of 52 entries, -1 indicating undefined radius
//              First 26 entries are for A to Z and then a to z. 
//Postcondition: all the defined spheres are printed on the screen
void sphere4(int radius[])
{
  int i;
  for (i=0;i<52;i++)
  {
    if (radius[i] != -1)
    {
      printf("%c [radius: %d]\n",getletter(i), radius[i]);
    }
  }
}

void sphere5(int radius[])
{
int i;
for (i=0;i<52;i++)
	{
	if (radius[i] != -1)
	printf("%c",getletter(i));
	}
}
void sphere6(int radius[])
{
 int i;
 for (i=0;i<52;i++)
  {
	 if (radius[i] != -1)
	 swap(&radius[i],&radius[i+26]);
  }
}


The functions listed are at the beginning of the code. Another problem I have run into is defining the cylinder/sphere using arrays, and being able to call them to compute the volume/etc. I've put very little work so far into the actual shape menu functions that define volume because I'm a little lost on where to start.


Last but not least, you've no idea how much help I have gotten from these forums. If not for you all, I would have a much harder time in my course this summer. So I'd like to thank you all in advance! Oh, and I made the code less horizontal heavy for you Walt

EDIT: I got the Init value fixed. Now I just need to work on swap.
EDIT2: Got init and swap defined now!

Right now I'm having trouble when I define the cylinder
  #2  
Old 09-Jul-2006, 20:39
Cecil Cecil is offline
New Member
 
Join Date: May 2006
Posts: 10
Cecil is on a distinguished road

Re: Shapes Functions Version 2 - Arrays!


Alright, I got a lot of work done on it. The only thing I have trouble with is the 'swap' function now for the cylinder menu (remember, I haven't worked on the sphere menu yet.)

CPP / C++ / C Code:
#include <stdlib.h>
#include <stdio.h>
#include <math.h>

#define PI 3.1

int round(double d)
{
  return (int)(d+0.5);
}

void swap(int *i, int *j)
{
 int temp;

 temp = *i;
 *i = *j;
 *j = temp;
}

void init(int list[], int length, int val)
{
int i;
for (i=0;i<length;i++)
	list[i] = val; //set all the arrays to the value
}

int getindex(char c)
	{
	int x;
	if (isupper(c)) 
	 {
	  x = (c - 'A');
	  return x;
	 }      
	else 
	 {   //c -
	  x = (c - 'G');
	  return x;
	 }	
	}

char getletter(int index)
	{
	  int x;
	  if (index>=26) 
	   {         //- 'A'
	    x = (index + 'G');
	    return x;
	   }
	  else 
	   {
		 x = ('A'+index);
	    return x;
	   }
	}


void menu();
void cylinder();
void cylinder_menu();
void sphere();
void sphere_menu();


void cylinder1(int *radius, int *height);
void cylinder2(int radius, int height);
void cylinder3(int radius, int height);
void cylinder4(int radius, int height);
void cylinder5(int radius[], int height[]);
void cylinder6(int height[]);
void cylinder7(int radius[], int height[]);


int sphere1();
int sphere2();
void sphere3(int radius);
void sphere4(int radius[]);
void sphere5(int radius[]);
void sphere6(int radius[]);


int main()
{
    int choice;
    menu();
    scanf("%d", &choice);

    while (choice != 3) 
	  {

         if (choice == 1)
              cylinder();
         else if (choice == 2)
              sphere();
         else if (choice != 3)
              printf("Sorry, please enter your choice again.\n");

         menu();
         scanf("%d", &choice);
     }
}


void menu()
{
  printf("1 Cylinder Menu\n");
  printf("2 Sphere Menu\n");
  printf("3 quit\n");
}
void cylinder()
{

	int radius[52];   	  //radius will be -1 for undefined
	int height[52];        //height will be -1 for undefined
	int index, choice, totaldefined=0;
	char c,dummy;
	
	init(height, 52, -1);  //make them to -1

	cylinder_menu();
	scanf("%d", &choice);
	while (choice != 8) 
	{
	if (choice == 1)
	 {
	
	  printf("what is the name of the cylinder:  ");
	  scanf("%c%c", &dummy, &c);
	
	  index=getindex(c);
	  if (height[index]!=-1)
	  {
	    printf("overwrite the existing cylinder %c [radius:  %d. height: %d]?\n", getletter(c), radius[index], height[index]);
	    scanf("%c%c",&dummy, &c);
	   if (toupper(c)=='Y')
	    {
	     cylinder1(&radius[index],&height[index]);
	     totaldefined++;
	    }
	  }
	 else
	 {
	  cylinder1(&radius[index],&height[index]);
	  totaldefined++;
	 }
	}
	
	else if ((choice>=2)&&(choice<=4))
	 if (totaldefined==0)
	 { 
	  printf("You have not defined ANY cylinders yet.  Try again.\n");
	 }
	else
	{
	printf("What is the name of the cylinder:   ");
	scanf("%c%c", &dummy, &c);
	}
	index=getindex(c);
	if (height[index] == -1) printf("Cylinder %c is undefined.  Try again.\n",index);
	else if (choice == 2)
		cylinder2(radius[index],height[index]);
	else if (choice == 3)
		cylinder3(radius[index],height[index]);
	else if (choice == 4)
		cylinder4(radius[index],height[index]);
	else if (choice == 5)
		cylinder5(radius,height);
	else if (choice == 6)
		cylinder6(height);
	else if (choice == 7)
		cylinder7(radius,height);
	else if (choice != 8)
		printf("\n");
	
	cylinder_menu();
	scanf("%d", &choice);
//}
}
}

void cylinder_menu()
{
  printf("1 Define a cylinder\n");
  printf("2 Surface Area\n");
  printf("3 Circumference\n");
  printf("4 Volume\n");
  printf("5 List all cylinders\n");
  printf("6 List available cylinder names\n");
  printf("7 Swap lowercase and uppercase names\n");
  printf("8 Back to main menu\n");
}

void cylinder1(int *radius, int *height)
{
  printf("Enter the radius and the height: ");
  scanf("%d %d",radius,height);
  printf("Done!\n");
}

void cylinder2(int radius, int height)
{
  printf("The cylinder's surface area is %d\n", round(PI*2*radius*height));
}

void cylinder3(int radius, int height)
{
  printf("The cylinder's circumference is %d\n", round(PI*2*radius));
}

void cylinder4(int radius, int height)
{
  printf("The cylinder's volume is %d\n", round(PI*radius*radius*height));
}

void cylinder5(int radius[], int height[])
{
  int i;
  for (i=0;i<52;i++)
	{
 	 if (height[i] != -1)
 	 printf ("%c [radius:  %d. height: %d]\n" ,getletter(i), radius[i], height[i]);
	}
}

void cylinder6(int height[])
{
int i;
for (i=0;i<52;i++)
	{
	if (height[i] == -1)
	printf("%c",getletter(i));
	}
	printf("\n");
}
void cylinder7(int radius[], int height[])
{
 int i;
 for (i=0;i<52;i++)
  {
	 if (height[i] != -1)
	 swap(&radius[i],&radius[i+26]);
    swap(&height[i],&height[i+26]);
  }
}


void sphere()
{

	int radius[52];   	  //radius will be -1 for undefined
	int index, choice, totaldefined=0;
	char c,dummy;
	
	init(radius, 52, -1);  //init to -1
	//}
	sphere_menu();
	scanf("%d", &choice);
	while (choice != 8) 
	{
	if (choice == 1)
	 {
	
	  printf("what is the name of the sphere:  ");
	  scanf("%c%c", &dummy, &c);
	
	  index=getindex(c);
	  if (radius[index]!=-1)
	  {
	    printf("Overwrite the existing sphere %c [radius:  %d]?\n", getletter(c), radius[index]);
	    scanf("%c%c",&dummy, &c);
	   if (toupper(c)=='Y')
	    {
	     sphere1();
	     totaldefined++;
	    }
	  }
	 else
	 {
	  sphere1();
	  totaldefined++;
	 }
	}
	
	else if ((choice>=2)&&(choice<=4))
	 if (totaldefined==0)
	 { 
	  printf("You have not defined ANY spheres yet.  Try again.\n");
	  break;
	 }
	else
	{
	printf("What is the name of the sphere:   ");
	scanf("%c%c", &dummy, &c);
	
	index=getindex(c);
	if (radius[index] == -1) printf("Sphere %c is undefined.  Try again.\n",index);
	else if (choice == 2)
		sphere2();
   else if (choice == 3)
      sphere3(radius[index]);
   else if (choice == 4)
      sphere4(radius);
   else if (choice == 5)
      sphere5(radius);
   else if (choice == 6)
      sphere6(radius);
   else if (choice != 7)
        printf("Sorry, please enter your choice again.\n");

         sphere_menu();
         scanf("%d", &choice);
}
}
}
void sphere_menu()
{
  printf("1 Define a Sphere with radius\n");
  printf("2 Define a Sphere with volume\n");
  printf("3 Volume\n");
  printf("4 List all spheres\n");
  printf("5 List available sphere names\n");
  printf("6 Swap lowercase and uppercase names\n");
  printf("7 Back to main menu\n");
}

int sphere1()
{
  int temp;
  printf("Enter the radius: ");
  scanf("%d",&temp);
  printf("Done!\n");
  return temp;
}

int sphere2()
{
  int volume,radius;
  double temp;
  printf("Enter the desired volume: ");
  scanf("%d",&volume);
  temp=pow(volume/(PI*4/3),1.0/3);
  radius=round(temp);
  printf("Created a sphere with radius %d as the best match.\n",radius);
  return radius;
}

void sphere3(int radius)
{
  if (radius == -1)
  {
    printf("You have not defined a sphere yet. Try again.\n");
    return;
  }
  printf("%d\n", round(PI*4/3*radius*radius*radius));
}


//Precondition: radius is an array of 52 entries, -1 indicating undefined radius
//              First 26 entries are for A to Z and then a to z. 
//Postcondition: all the defined spheres are printed on the screen
void sphere4(int radius[])
{
  int i;
  for (i=0;i<52;i++)
  {
    if (radius[i] != -1)
    {
      printf("%c [radius: %d]\n",getletter(i), radius[i]);
    }
  }
}

void sphere5(int radius[])
{
int i;
for (i=0;i<52;i++)
	{
	if (radius[i] == -1)
	printf("%c",getletter(i));
	}
	printf("\n");
}
void sphere6(int radius[])
{
 int i;
 for (i=0;i<52;i++)
  {
	 if (radius[i] != -1)
	 swap(&radius[i],&radius[i+26]);
  }
}



Here is the swap function:
CPP / C++ / C Code:
void swap(int *i, int *j)
{
 int temp;

 temp = *i;
 *i = *j;
 *j = temp;
}


It doesn't seem to work 100%, and I'm having difficulty finding how to have this function work for this.
Here is an example of what I did:

defined cylinder A with rad 1, height 1
swap
checked available cylinders, and ALL lowercases except j (?) were taken.

weird..
 
 

Recent GIDBlogObservations of Iraq by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamic vs Static Arrays WaltP Miscellaneous Programming Forum 5 16-Feb-2006 15:54
Noob question on c arrays and functions brett C Programming Language 1 20-Apr-2005 03:59
versions onauc C++ Forum 13 20-Nov-2004 23:24
conflict between printf and stdarg.h va functions mirizar C Programming Language 3 12-Jul-2004 08:11
Help on passing in arrays in functions? nusstu C Programming Language 10 02-Apr-2004 10:42

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 15:32.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.