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 12-Mar-2006, 11:34
batman3280 batman3280 is offline
New Member
 
Join Date: Feb 2006
Posts: 12
batman3280 is an unknown quantity at this point

C Code i need help for printing


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


struct student
{

  char *name;
  int GPA;
  struct student * next;

};

struct Department
{

int deptNo;
char* deptName;//	max 10 letters
char*  deptCode;//	max 3 letters
struct  Department* Dnext;
struct student *Shead;

};
void printStud (struct student *stu);

void addStudent (struct Department **,int ,struct *student);
struct  Department* move;
void reset(Department *head);
void print(struct Department *head);
int numStudent;
struct student st;
void Print(struct student* );
struct student readStu ();
struct  Department getDeptInfo();
student st1;
Department Dept;
 

//*********************************************************************/

 void addStudent (struct Department **head,int deptNo,struct student *stu)
 {

		(*stu).next = (*head)[deptNo].Shead;
		(*head)[deptNo].Shead= stu;


}

       struct Department *DeptNo;

void main()

{

 int n;
	      
         printf("Please enter the number of DEPARTMENT:  " );
		
		  n=scanf("%d",&n);
	   
	
       struct Department *DeptNo=(struct Department*)malloc(sizeof(struct Department)*n); 
	    
	    for(int i=0;i<2 ;i++)
		{
		
		 *DeptNo=getDeptInfo();
		 
		 readStu();
		 addStudent(&DeptNo,i,&st1);
         
		 printf("\n");

		
		}

//***************************************************************
//i need to print the info using the following format that do no work 
	//	for(i=0;i<n;i++)
	//{
	//	printf("%s this is the dept code ",DeptNo[i].deptCode);//this code is wrong
	//	printf("%s this is the dept code ",DeptNo[i].deptName);//wrong it does not retrive the info 
	//}


		
		print(DeptNo);





}


//**********************************************************************/

//Write getDeptInfo() that read's one department's info to be stored in the array.



struct Department getDeptInfo()

{

		
        printf("Please enter Department  name :  " );
	
        Dept.deptName=(char *)malloc(sizeof(student)*11); 
	    
		scanf("%s",Dept.deptName);
        Dept.deptCode=(char *)malloc(sizeof(student)*4); 
	    
		printf("Please enter Department Cpde :  ");
		scanf("%s",Dept.deptCode);
        printf("Please enter Department Number :  ");
		
		scanf("%d",&Dept.deptNo);

	    Dept.Shead=NULL;

          printf("\n");
		
		
		return Dept;
	






}

//-	Allow the user to enter the department number and student's info in a loop until a negative value is entered 
//for the department number. 






  void print( Department *head)

  {   
		student s;	  
	  while(head!=NULL)
	  
		{        
	       
          
		  printf(" \nThe DEPARTMENT  Name Is \t %s",head->deptName);
	     
	//	   printf(" \nThe DEPARTMENT  Name Is \t %s",head->Shead->name);
		    	     
		   printf(" \nThe DEPARTMENT  Code Is \t %s",head->deptCode);
		 
		   printf(" \nThe DEPARTMENT Number Is \t %d",head->deptNo);
	      //if i am using this refrence to get student info but i did not work
		  //printf(" \nThe student Name Is \t %s",head->Shead->next);
	       
		  
//	      Print(&s);

          head= head->Dnext;
		   
		 
	  }
	    
	
 return;
}


void Print(struct student *temp)
{
	      
		   
	       printf(" \nThe student GPA  Is \t %d",temp->GPA);
	       printf(" \nThe student Name Is \t %s",temp->name);
	       
		   temp=temp->next;

           	
}

          



student readStu ()

{
   	 
	
        printf("Please enter student name :  " );
	
        st1.name=(char *)malloc(sizeof(student)*20); 
	    
		scanf("%s",st1.name);

		printf("Please enter student GPA :  ");
		scanf("%d",&st1.GPA);

     printf("\n");
		
		
		return st1;
	



}

  #2  
Old 12-Mar-2006, 11:58
TreyAU21's Avatar
TreyAU21 TreyAU21 is offline
Member
 
Join Date: Feb 2006
Location: Atlanta, GA
Posts: 116
TreyAU21 has a spectacular aura aboutTreyAU21 has a spectacular aura about

Re: C Code i need help for printing


Whoa hoss... that's a buch of code with nothing telling us what you are wanting help with besides... "printing". We need more information on the specific problem that you are having... where you think this might be happeneing... and PLEASE put the following tags around your code next time [/c] after the block of code... and [c] before the block of code.
Thanks.
__________________
If practice makes perfect and nobody's perfect... why practice?

Homepage: http://www.treywhite.com
Blog: http://www.treywhite.com/blog.php
Web Design Company: http://www.ewebproductions.com
  #3  
Old 12-Mar-2006, 12:11
batman3280 batman3280 is offline
New Member
 
Join Date: Feb 2006
Posts: 12
batman3280 is an unknown quantity at this point
Cool

Re: C Code i need help for printing


hello

this code suppose to have to construct one is holding student info such as grade ,student name,and pointers .next;for the department struct it hold the department name,code ,and refrence to student struct
this code suppose to read the student info and deparment info and display the information from the depart that a student is in
it is like that

deN studentInfo studentName GPA
Eng Ghon 2
CS Alex 3


Please i need help
it looks like 2D array my problem is to print the student info according to the department he is
like dept[1].shead should display Eng Ghon 2
another question what do you mean by using tag and how to use it
  #4  
Old 12-Mar-2006, 16:44
TreyAU21's Avatar
TreyAU21 TreyAU21 is offline
Member
 
Join Date: Feb 2006
Location: Atlanta, GA
Posts: 116
TreyAU21 has a spectacular aura aboutTreyAU21 has a spectacular aura about

Re: C Code i need help for printing


First of all... there were several errors when I tried to compile the code:

#1) addStudent prototype
* no identifier for the Department pointer
* no identifier for the int parameter
* no structure named for the student structure pointer

#2) need to add the keyword struct in front of your structure name in the function prototype

#3) Need to add the keyword struct in front of your structure initialization of Student st1

#4) Need to add the keyword struct in front of your structure initialization of Department Dept

#5) You always want main to have a return type of int in C... so that needs to be changed

#6) Unlike Java and C++ you can't initialize a variable in a function in a for loop for instance. Initialize that int i (the counter in the for loop) at the start of the main function.

#7 and #8 ) Add the keyword struct in the 2 malloc() calls in the getDeptInfo() function when trying to allocate the memory.

#9) Add the keyword struct in for the print function parameter Department *head.

#10) Add the keyword struct for the student s initialization in the print() function.

#11) Add the keyword struct for the return type of the readStu() function.

#12) Add the keyword struct in front of student in the malloc() call in the readStu() function.

Here is the code after those are corrected and white space was taken out:

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


   struct student {
      char *name;
      int GPA;
      struct student * next;
   };

   struct Department {
      int deptNo;
      char* deptName;//max 10 letters
      char*  deptCode;//max 3 letters
      struct  Department* Dnext;
      struct student *Shead;
   };
   
   void printStud (struct student *stu);
   void addStudent (struct Department **head, int deptNo,struct student *stu);
   struct Department* move;
   void reset(struct Department *head);
   void print(struct Department *head);
   int numStudent;
   struct student st;
   void Print(struct student* );
   struct student readStu ();
   struct  Department getDeptInfo();
   struct student st1;
   struct Department Dept;
 

//*********************************************************************/

    void addStudent (struct Department **head,int deptNo,struct student *stu) {
   
      (*stu).next = (*head)[deptNo].Shead;
      (*head)[deptNo].Shead= stu;
   }

   struct Department *DeptNo;

    int main() {
   
      int n, i;
      struct Department *DeptNo;
   	
      printf("Please enter the number of DEPARTMENT:  " );
      n=scanf("%d",&n);
   
      DeptNo=(struct Department*)malloc(sizeof(struct Department)*n);
   
      for(i=0;i<2 ;i++) {
      
         *DeptNo=getDeptInfo();
         readStu();
         addStudent(&DeptNo,i,&st1);
         printf("\n");
      }
   
   //***************************************************************
   //i need to print the info using the following format that do no work 
   //for(i=0;i<n;i++)
   //{
   //printf("%s this is the dept code ",DeptNo[i].deptCode);//this code is wrong
   //printf("%s this is the dept code ",DeptNo[i].deptName);//wrong it does not retrive the info 
   //}
   
      print(DeptNo);
      return 0;
   }


//**********************************************************************/

//Write getDeptInfo() that read's one department's info to be stored in the array.


    struct Department getDeptInfo() {
   
      printf("Please enter Department  name :  " );
      Dept.deptName=(char *)malloc(sizeof(struct student)*11); 
    
      scanf("%s",Dept.deptName);
      Dept.deptCode=(char *)malloc(sizeof(struct student)*4); 
    
      printf("Please enter Department Cpde :  ");
      scanf("%s",Dept.deptCode);
      printf("Please enter Department Number :  ");
   
      scanf("%d",&Dept.deptNo);
      Dept.Shead=NULL;
   
      printf("\n");
   
      return Dept;
   }

//-Allow the user to enter the department number and student's info in a loop until a negative value is entered 
//for the department number. 


    void print(struct Department *head) {   
      
      struct student s;  
      
      while(head!=NULL) {        
       
          
         printf(" \nThe DEPARTMENT  Name Is \t %s",head->deptName);
      //   printf(" \nThe DEPARTMENT  Name Is \t %s",head->Shead->name);
         printf(" \nThe DEPARTMENT  Code Is \t %s",head->deptCode);
         printf(" \nThe DEPARTMENT Number Is \t %d",head->deptNo);
      //if i am using this refrence to get student info but i did not work
      //printf(" \nThe student Name Is \t %s",head->Shead->next);
       //      Print(&s);
      
         head= head->Dnext;
      }
    
      return;
   }


    void Print(struct student *temp) {
      
      printf(" \nThe student GPA  Is \t %d",temp->GPA);
      printf(" \nThe student Name Is \t %s",temp->name);
       
      temp=temp->next;
   }
   

    struct student readStu () {
    
      printf("Please enter student name :  " );
      st1.name=(char *)malloc(sizeof(struct student)*20); 
    
      scanf("%s",st1.name);
      printf("Please enter student GPA :  ");
      scanf("%d",&st1.GPA);
      printf("\n");
   
      return st1;
   }

After running the program... here is the output. Tell me what should be happening:

Please enter the number of DEPARTMENT: 1
Please enter Department name : Finance
Please enter Department Cpde : 999
Please enter Department Number : 123999

Please enter student name : Trey
Please enter student GPA : 4


Please enter Department name : Accounting
Please enter Department Cpde : 998
Please enter Department Number : 123998

Please enter student name : Joe
Please enter student GPA : 3



The DEPARTMENT Name Is Accounting
The DEPARTMENT Code Is 998
The DEPARTMENT Number Is 123998
__________________
If practice makes perfect and nobody's perfect... why practice?

Homepage: http://www.treywhite.com
Blog: http://www.treywhite.com/blog.php
Web Design Company: http://www.ewebproductions.com
  #5  
Old 13-Mar-2006, 00:55
batman3280 batman3280 is offline
New Member
 
Join Date: Feb 2006
Posts: 12
batman3280 is an unknown quantity at this point

Re: C Code i need help for printing


hello:

this code suppose to read student information and store it in linked list then according to the department student information should be displayed
the reading from the user input and display the student information according to the department they are located in
  #6  
Old 13-Mar-2006, 09:22
batman3280 batman3280 is offline
New Member
 
Join Date: Feb 2006
Posts: 12
batman3280 is an unknown quantity at this point
Cool

Re: C Code i need help for printing


Dear this code suppose to display the students name and GPA according to the department they are in
if the department name is Enginnering
we enter student name and GPA suppose we enter 15 student in Engineering
and 20 student in Computer we need to display
Deparment No with department code,department name,and student name,GPA


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


   struct student {
      char *name;
      int GPA;
      struct student * next;
   };

   struct Department {
      int deptNo;
      char* deptName;//max 10 letters
      char*  deptCode;//max 3 letters
      struct student *Shead;
   };
   
   void printStud (struct student *stu);
   void addStudent (struct Department **head, int deptNo,struct student **stu);
   void print(struct Department *head);
   void Print(struct student* );
   struct  student *readStu ();
   struct  Department getDeptInfo();
   struct  Department Dept;
 

//*********************************************************************/

    void addStudent (struct Department **head,int deptNo,struct student **stu) {
   
      (*stu)->next = (*head)[deptNo].Shead;
      (*head)[deptNo].Shead=* stu;
   }

  
    int main() {
   
      int n, i;
      struct Department *DeptNo;
   	  struct student  *st;
   	
      printf("Please enter the number of DEPARTMENT you want to create :  " );
      n=scanf("%d",&n);
   
      DeptNo=(struct Department*)malloc(sizeof(struct Department)*n);
   
      for(i=0;i<n ;i++)
	  {
      
         DeptNo[i]=getDeptInfo();
         st=readStu();
         addStudent(&DeptNo,i,&st);
         printf("\n");
	  }
   
   //***************************************************************
   
	  print(DeptNo);
      return 0;
   }


//**********************************************************************/

//Write getDeptInfo() that read's one department's info to be stored in the array.


    struct Department getDeptInfo() {
   
      printf("Please enter Department  name :  " );
      Dept.deptName=(char *)malloc(sizeof(struct student)*11); 
    
      scanf("%s",Dept.deptName);
      Dept.deptCode=(char *)malloc(sizeof(struct student)*4); 
    
      printf("Please enter Department Cpde :  ");
      scanf("%s",Dept.deptCode);
      printf("Please enter Department Number :  ");
   
      scanf("%d",&Dept.deptNo);
      
   
      printf("\n");
   
      return Dept;
   }

//-Allow the user to enter the department number and student's info in a loop until a negative value is entered 
//for the department number. 


    void print(struct Department *head) {   
      
      
      
      while(head!=NULL) {        
       
          
        // printf(" \nThe DEPARTMENT  Name Is \t %s",head->deptName);
      //   printf(" \nThe DEPARTMENT  Name Is \t %s",head->Shead->name);
         printf(" \nThe DEPARTMENT  Code Is \t %s",head->deptCode);
         printf(" \nThe DEPARTMENT Number Is \t %d",head->deptNo);
      //if i am using this refrence to get student info but i did not work
      //printf(" \nThe student Name Is \t %s",head->Shead->next);
       //      Print(&s);
      
         
      }
    
      return;
   }


    void Print(struct student *temp) {
      
      printf(" \nThe student GPA  Is \t %d",temp->GPA);
      printf(" \nThe student Name Is \t %s",temp->name);
       
      temp=temp->next;
   }
   

    struct student *readStu () {
      
struct student *st1=(struct student*)malloc(sizeof(struct student)); 
    
      
      printf("Please enter student name :  " );
     
	  st1->name=(char *)malloc(sizeof(struct student)*20); 
      scanf("%s",st1->name);
      printf("Please enter student GPA :  ");
      scanf("%d",&st1->GPA);
      printf("\n");
   
      return st1;
   }
  #7  
Old 13-Mar-2006, 10:40
davis
 
Posts: n/a

Re: C Code i need help for printing


Quote:
Originally Posted by batman3280
Dear this code suppose to display the students name and GPA according to the department they are in
if the department name is Enginnering
we enter student name and GPA suppose we enter 15 student in Engineering
and 20 student in Computer we need to display
Deparment No with department code,department name,and student name,GPA


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


   struct student {
      char *name;
      int GPA;
      struct student * next;
   };

   struct Department {
      int deptNo;
      char* deptName;//max 10 letters
      char*  deptCode;//max 3 letters
      struct student *Shead;
   };
   
   void printStud (struct student *stu);
   void addStudent (struct Department **head, int deptNo,struct student **stu);
   void print(struct Department *head);
   void Print(struct student* );
   struct  student *readStu ();
   struct  Department getDeptInfo();
   struct  Department Dept;
 

//*********************************************************************/

    void addStudent (struct Department **head,int deptNo,struct student **stu) {
   
      (*stu)->next = (*head)[deptNo].Shead;
      (*head)[deptNo].Shead=* stu;
   }

  
    int main() {
   
      int n, i;
      struct Department *DeptNo;
   	  struct student  *st;
   	
      printf("Please enter the number of DEPARTMENT you want to create :  " );
      n=scanf("%d",&n);
   
      DeptNo=(struct Department*)malloc(sizeof(struct Department)*n);
   
      for(i=0;i<n ;i++)
	  {
      
         DeptNo[i]=getDeptInfo();
         st=readStu();
         addStudent(&DeptNo,i,&st);
         printf("\n");
	  }
   
   //***************************************************************
   
	  print(DeptNo);
      return 0;
   }


//**********************************************************************/

//Write getDeptInfo() that read's one department's info to be stored in the array.


    struct Department getDeptInfo() {
   
      printf("Please enter Department  name :  " );
      Dept.deptName=(char *)malloc(sizeof(struct student)*11); 
    
      scanf("%s",Dept.deptName);
      Dept.deptCode=(char *)malloc(sizeof(struct student)*4); 
    
      printf("Please enter Department Cpde :  ");
      scanf("%s",Dept.deptCode);
      printf("Please enter Department Number :  ");
   
      scanf("%d",&Dept.deptNo);
      
   
      printf("\n");
   
      return Dept;
   }

//-Allow the user to enter the department number and student's info in a loop until a negative value is entered 
//for the department number. 


    void print(struct Department *head) {   
      
      
      
      while(head!=NULL) {        
       
          
        // printf(" \nThe DEPARTMENT  Name Is \t %s",head->deptName);
      //   printf(" \nThe DEPARTMENT  Name Is \t %s",head->Shead->name);
         printf(" \nThe DEPARTMENT  Code Is \t %s",head->deptCode);
         printf(" \nThe DEPARTMENT Number Is \t %d",head->deptNo);
      //if i am using this refrence to get student info but i did not work
      //printf(" \nThe student Name Is \t %s",head->Shead->next);
       //      Print(&s);
      
         
      }
    
      return;
   }


    void Print(struct student *temp) {
      
      printf(" \nThe student GPA  Is \t %d",temp->GPA);
      printf(" \nThe student Name Is \t %s",temp->name);
       
      temp=temp->next;
   }
   

    struct student *readStu () {
      
struct student *st1=(struct student*)malloc(sizeof(struct student)); 
    
      
      printf("Please enter student name :  " );
     
	  st1->name=(char *)malloc(sizeof(struct student)*20); 
      scanf("%s",st1->name);
      printf("Please enter student GPA :  ");
      scanf("%d",&st1->GPA);
      printf("\n");
   
      return st1;
   }

Count how many mallocs you have and then count how many frees you have. Didn't I already discuss with you the need for a corresponding free for every malloc?

What you need to do is to rewrite your code so that you have a properly implemented Linked List with a "Node" for every element in the list. Then implement your student structure so that you can add it as a node data member so that you separate the linked list functionality from the actual data related to students and departments. Once you have a generic linked list implemented, then you can easily:

CPP / C++ / C Code:
typedef linked_list Students;

It seems that you want a "Departments" linked list to own some number of students and inside of that structure that you've declared is a pointer to a student "head" node (aka element).

You should probably declare your Department structure such that it contains a linked list of Students, not a "Shead" member that is really a pointer to student structure:

CPP / C++ / C Code:
struct Department {
      int deptNo;
      char* deptName; //max 10 letters
      char*  deptCode; //max 3 letters
      Students* students;
};

If you have a "Department" structure, its members do not really need to have "dept" in them. For example:

CPP / C++ / C Code:
struct Department dept;
dept.deptNo = 100;
dept.deptName = "Engineering"; // already more than 10 letters...
dept.deptCode = "ENG";

Do you see how redundant it is to have the "dept" prefacing every member variable of Department? If we are already using/accessing a Department structure, then its members should related somehow to department.

CPP / C++ / C Code:
struct Department {
      int number;
      char* name; //max 10 letters
      char*  code; //max 3 letters
      Students* students;
};

...is a better choice because of:

CPP / C++ / C Code:
struct Department dept;
dept.number = 100;
dept.name = "Engineering"; // already more than 10 letters...
dept.code = "ENG";

Easy, huh?


I don't see how an integer GPA member of student is going to actually work, unless you're using 1000ths or something as the base such that 3500 = 3.50. I recommended using float, but I guess that didn't work for your needs?

What you're trying to do is make a bad design work...and, until you fix your code so that you free your allocated memory regions, there isn't much more that I can do to help you. Why are you writing this code? Is it for a programming class or because you're trying to implement some functionality for a school?


:davis:
  #8  
Old 13-Mar-2006, 10:57
batman3280 batman3280 is offline
New Member
 
Join Date: Feb 2006
Posts: 12
batman3280 is an unknown quantity at this point
Cool

Re: C Code i need help for printing


Dear this code suppose to display the students name and GPA according to the department they are in
if the department name is Enginnering
we enter student name and GPA suppose we enter 15 student in Engineering
and 20 student in Computer we need to display
Deparment No with department code,department name,and student name,GPA


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


   struct student {
      char *name;
      int GPA;
      struct student * next;
   };

   struct Department {
      int deptNo;
      char* deptName;//max 10 letters
      char*  deptCode;//max 3 letters
      struct student *Shead;
   };
   
   void printStud (struct student *stu);
   void addStudent (struct Department **head, int deptNo,struct student **stu);
   void print(struct Department *head);
   void Print(struct student* );
   struct  student *readStu ();
   struct  Department getDeptInfo();
   struct  Department Dept;
 

//*********************************************************************/

    void addStudent (struct Department **head,int deptNo,struct student **stu) {
   
      (*stu)->next = (*head)[deptNo].Shead;
      (*head)[deptNo].Shead=* stu;
   }

  
    int main() {
   
      int n, i;
      struct Department *DeptNo;
   	  struct student  *st;
   	
      printf("Please enter the number of DEPARTMENT you want to create :  " );
      n=scanf("%d",&n);
   
      DeptNo=(struct Department*)malloc(sizeof(struct Department)*n);
   
      for(i=0;i<n ;i++)
	  {
      
         DeptNo[i]=getDeptInfo();
         st=readStu();
         addStudent(&DeptNo,i,&st);
         printf("\n");
	  }
   
   //***************************************************************
   
	  print(DeptNo);
      return 0;
   }


//**********************************************************************/

//Write getDeptInfo() that read's one department's info to be stored in the array.


    struct Department getDeptInfo() {
   
      printf("Please enter Department  name :  " );
      Dept.deptName=(char *)malloc(sizeof(struct student)*11); 
    
      scanf("%s",Dept.deptName);
      Dept.deptCode=(char *)malloc(sizeof(struct student)*4); 
    
      printf("Please enter Department Cpde :  ");
      scanf("%s",Dept.deptCode);
      printf("Please enter Department Number :  ");
   
      scanf("%d",&Dept.deptNo);
      
   
      printf("\n");
   
      return Dept;
   }

//-Allow the user to enter the department number and student's info in a loop until a negative value is entered 
//for the department number. 


    void print(struct Department *head) {   
      
      
      
      while(head!=NULL) {        
       
          
        // printf(" \nThe DEPARTMENT  Name Is \t %s",head->deptName);
      //   printf(" \nThe DEPARTMENT  Name Is \t %s",head->Shead->name);
         printf(" \nThe DEPARTMENT  Code Is \t %s",head->deptCode);
         printf(" \nThe DEPARTMENT Number Is \t %d",head->deptNo);
      //if i am using this refrence to get student info but i did not work
      //printf(" \nThe student Name Is \t %s",head->Shead->next);
       //      Print(&s);
      
         
      }
    
      return;
   }


    void Print(struct student *temp) {
      
      printf(" \nThe student GPA  Is \t %d",temp->GPA);
      printf(" \nThe student Name Is \t %s",temp->name);
       
      temp=temp->next;
   }
   

    struct student *readStu () {
      
struct student *st1=(struct student*)malloc(sizeof(struct student)); 
    
      
      printf("Please enter student name :  " );
     
	  st1->name=(char *)malloc(sizeof(struct student)*20); 
      scanf("%s",st1->name);
      printf("Please enter student GPA :  ");
      scanf("%d",&st1->GPA);
      printf("\n");
   
      return st1;
   }
  #9  
Old 13-Mar-2006, 15:48
davis
 
Posts: n/a

Re: C Code i need help for printing


Ummm, Batman...I think that the Riddler has been up to his old tricks again, since www.gidforums.com is identical to www.gidforums.com maybe you could modify your code so that it frees the memory you allocate before posting it again?


:davis:
 
 

Recent GIDBlogProgramming ebook direct download available 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
Re: Formatting C / C++ code WaltP C Programming Language 1 07-Jan-2008 00:59
Image processing:Stentiford and Holt Thinning Source code in C or C++ ladyscarlet99 C++ Forum 1 09-Sep-2005 04:29
Guidelines for posting requests for help - UPDATED! WaltP C++ Forum 0 21-Apr-2005 03:44
Problem with int mixed with char,... leitz C++ Forum 17 07-Dec-2004 21:56

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

All times are GMT -6. The time now is 05:50.


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