no.. :(
Type: Posts; User: sivapc
no.. :(
still not sure in this :(
just don't know where to start.. can't find any help from www also..
#include<iostream>
using namespace std;
template < class T >
T printArray(const T *array, const int count,int lowsub,int highsub)
{
if(highsub>count || highsub<=lowsub)
return 0;
else
{
oh..
thanks sir.. will try to work on this template (pardon the pun)
thanks sir..
what is a null terminated string and how does it work with the linked list?? (just so that i can understand the question even more)
the template..
i did normal main program by doing a function and initialized two arrays.. but only later realized we need to use the template for it..
Ok.. trust me, this is the final question from me..
really confused with this... any guidance on this?? pls
Hello guys..
i'm stuck (on this problem) while doing revision questions for exam next week. I just understand this question.
Can you please make it understandable and guidance (on how to do...
Ok.. this is an assignment.. i'm not going to lie.
but i have done almost everything of it.. just need some help on the stl <vector>/ <list>
#include <iostream>
#include <vector>
#include...
split explicityly..
hmm.. can you explain it a bit..
void addStudent ()
{
Student *temp;
temp = new Student;
CourseSection *cs;
cs = new CourseSection;
cout<<"Enter Course Section:"<<flush;
in the add course section function or in add student function??
courseSection *section
inside the student struct?
it compiles without error..
how can i link the student struct to the course??
sorry for disturbing.. but i'm just so amateur at this
declare the student struct twice?
then how?
i have a student struct already.. i can add new students, new course, and new sections..
but can't link them :(
maybe addCourseSection(courseSection cs) // something like this??
inside the main or outside the main??
i already have a student structure.. with the attributes.
struct CourseSection
{
char sectionNumber [20];
int startTime;
int startDate;
int roomNumber;
Student *studentPointer;
CourseSection...
er,, do you know how to add students to the course??
i tried this..
void addStudent (CourseSection cs)
{
CourseSection *temp;
temp = new CourseSection;
Student *temp1;
oops.. ok..
courseSection *firstCourse, *secondCourse, etc??
like that?
so what was wrong in
Student *studentNxt
Student *firstCourse, *secondCourse etc??
hmm.. i thought the next pointer is to point to the student and course pointers to point to the course sections that the students are taking..
just dumbfounded, atm.
struct Student
{
char name [30];
char studentId [30];
char major [30];
Student *StudentNxt;
Student *firstCourse, *secondCourse, *thirdCourse, *fourthCourse...
you mean like this??
struct Student
{
char name [30];
char studentId [30];
char major [30];
Student *firstCourse, *secondCourse, *thirdCourse, *fourthCourse;
thanks..
but can't quite understand what you're trying to say.. (a bit beginner at this)..