Please Help Me! Its Urgent

how to change this code into structured

Page 1 of 1

7 Replies - 460 Views - Last Post: 18 October 2009 - 08:41 AM Rate Topic: -----

#1 reshmen  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 18-October 09

Please Help Me! Its Urgent

Posted 18 October 2009 - 04:35 AM

[code]

#include <stdio.h>
#include <string.h>

This post has been edited by reshmen: 18 October 2009 - 08:26 AM

Is This A Good Question/Topic? 0
  • +

Replies To: Please Help Me! Its Urgent

#2 Aphex19  Icon User is offline

  • Born again Pastafarian.
  • member icon

Reputation: 614
  • View blog
  • Posts: 1,873
  • Joined: 02-August 09

Re: Please Help Me! Its Urgent

Posted 18 October 2009 - 04:43 AM

Whats the problem?
Was This Post Helpful? 0
  • +
  • -

#3 reshmen  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 18-October 09

Re: Please Help Me! Its Urgent

Posted 18 October 2009 - 06:27 AM

View PostAphex19, on 18 Oct, 2009 - 03:43 AM, said:

Whats the problem?



please help me to convert this code into structure programming in c not c++. hereby i attach the code that i tried to convert into structure mode!

This post has been edited by reshmen: 18 October 2009 - 08:24 AM

Was This Post Helpful? 0
  • +
  • -

#4 #define  Icon User is offline

  • Duke of Err
  • member icon

Reputation: 1276
  • View blog
  • Posts: 4,395
  • Joined: 19-February 09

Re: Please Help Me! Its Urgent

Posted 18 October 2009 - 06:59 AM

View Postreshmen, on 18 Oct, 2009 - 02:27 PM, said:

please help me to convert this code into structure programming in c not c++. hereby i attach the code that i tried to convert into structure mode!


Might be best to post your code, on the page if you need more help.


Your code looks like there is no need to pass a pointer to the function.
void get_gradepoint1(float *mark_cs1);

You will have to change the call to the function and the function body as well as the head.


;)
Was This Post Helpful? 0
  • +
  • -

#5 #define  Icon User is offline

  • Duke of Err
  • member icon

Reputation: 1276
  • View blog
  • Posts: 4,395
  • Joined: 19-February 09

Re: Please Help Me! Its Urgent

Posted 18 October 2009 - 07:11 AM

I think you are looking at holding one record in the struct.

struct cgpa
{
	char name [10];
	float mark_cs1;
	float mark_cs2;
	float mark_cs3;
	float ch_cs1;
	float ch_cs2;
	float ch_cs3;
	float gpa;
};



Then declare an array
cpga students[10];
Was This Post Helpful? 0
  • +
  • -

#6 reshmen  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 18-October 09

Re: Please Help Me! Its Urgent

Posted 18 October 2009 - 07:44 AM

the code u sent me just now is still confusing me! can you please make it clear so that i know what to do! i am just a beginner in this programming! please help me! thank you
Was This Post Helpful? 0
  • +
  • -

#7 #define  Icon User is offline

  • Duke of Err
  • member icon

Reputation: 1276
  • View blog
  • Posts: 4,395
  • Joined: 19-February 09

Re: Please Help Me! Its Urgent

Posted 18 October 2009 - 08:07 AM

Quote

... i am just a beginner in this programming!


I don't know how much you know, though.

You will need to understand functions, arrays and data structures,
not necessarily completely.


Here is a link about struct
Data Structures

Have a look and then see if you need more help.
Was This Post Helpful? 1
  • +
  • -

#8 JackOfAllTrades  Icon User is online

  • Saucy!
  • member icon

Reputation: 5951
  • View blog
  • Posts: 23,211
  • Joined: 23-August 08

Re: Please Help Me! Its Urgent

Posted 18 October 2009 - 08:41 AM

And the code's been removed. Do you want help, or not?

Dream.In.Code has a policy by which we prefer to see a good faith effort on your part before providing source code for homework assignments. Please post the code you have written in an effort to resolve the problem, and our members would be happy to provide some guidance. Be sure to include a description of any errors you are encountering as well.

Please post like this:

Thank you for helping us helping you.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1