Exforsys

Free Training

Array

This is a discussion on Array within the C and C++ forums, part of the Programming Talk category; Can somebody help me with code that will accept 5 student names and scores in 3 courses and sum up ...

Go Back   Exforsys > Programming Talk > C and C++

Exforsys.com


C and C++ C and C++

Reply

 

LinkBack Thread Tools Search this Thread
  #1 (permalink)  
Old 07-02-2009, 02:56 PM
Junior Member
 
Join Date: Jul 2009
Posts: 1
Shyner is on a distinguished road
Array

Can somebody help me with code that will accept 5 student names and scores in 3 courses and sum up the score, then grade them accordingly?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-29-2009, 04:32 PM
ba7ora's Avatar
Junior Member
 
Join Date: Jul 2009
Location: Oman
Posts: 5
ba7ora is on a distinguished road
i think u have 2 use STRICTER 2 do this so .... i dont know maybe it will help u

this is an example of STRICTER WITH POINTERS mybe will help 2

#include<iostream>
using namespace std;
struct stu,*a;
void main()
{
int id;
char name[20];
};
struct stu *a,b;
cout<<"Enter the ID"<<endl;
cin>>b.id;
cout<<"Enter the name"<<endl;
cin>>b.name;
a=&b;
cout<<"The student diteils are"<<endl;
cout<<a->id<<"\t"<<a->name;
}
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
Array Handling Rahulbatra Java 2 05-08-2007 05:43 PM
comp.lang.c Answers (Abridged) to Frequently Asked Questions (FAQ) Steve Summit Tech FAQ 0 06-15-2004 07:00 AM
comp.lang.c Answers (Abridged) to Frequently Asked Questions (FAQ) Steve Summit Tech FAQ 0 06-01-2004 07:01 AM
comp.lang.c Answers to Frequently Asked Questions (FAQ List) Steve Summit Tech FAQ 0 06-01-2004 07:00 AM
comp.lang.c Answers (Abridged) to Frequently Asked Questions (FAQ) Steve Summit Tech FAQ 0 05-15-2004 07:00 AM


All times are GMT -4. The time now is 05:34 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0
Copyright 2004 - 2009 Exforsys Inc. All rights reserved.