any one can help me out?
Type: Posts; User: bigmac(rexdale)
any one can help me out?
void StudentSingleListedLink::AddNode(StudentRecordDataNode *nd)
{
StudentRecordDataNode * current = root;
StudentRecordDataNode * temp = nd;
if(!root)
{
root = nd;
}
else...
anyone get a chance to check this out?
Fixed the following problems you stated and uploaded the .dat to sendspace:
http://www.sendspace.com/file/khr1rf
I checked up on insertion sort and got this so far:
void StudentSingleListedLink::AddNode(StudentRecordDataNode *nd)
{
if(!root)
{
root = nd;
return;
}
else if...
Main:
#include <iostream>
#include <fstream>
#include <string>
#include <iomanip>
#include "StudentRecordDataNode.h"
#include "Course.h"
#include "StudentSingleListedLink.h"
oh, makes sense now
i dont understand how it works though, does it do n-1 = 4 * 5 = 20 the first time? if so what does it do the second time?
i put the static int num to see how much times the function is used but i...
how does this work:
#include <stdio.h>
int fact(int n){
static int num = 0;
if(n == 1)
return 1;
else{
num++;
i actually put protected:
class publication {
protected:
char title[60];
char publisher[40];
public:
publication(char* t, char* p) {strcpy(title, t); strcpy(publisher,p);}
...
In the periodical derived class, i want to be able to output title and publisher on the base class publication where i output the description, how can i do that?
#include <iostream.h>
#include...
ya, its working ok now. last time i did this is didnt make a project but it looks like i have to now.
all i've dealt with so far is writing code and compiling it, on dev-c++ and then importing it to linux to compile again, don't know how to make a project.
anyways to fix that, or would you have to compile yourself
oh alright i got it now, now that they all have no syntax error i still get the "undefined reference to" that i was getting in the beginning.
Every function called in main that is part of one of...
like this?
#include <cstdio>
#include <cstring>
#include <iostream>
#include "ISBNPrefix.h"
#ifndef ISBN_H
#define ISBN_H
int valid(const char* str);
class ISBN{
here is a screenshot of the errors
http://img296.imageshack.us/img296/8057/51693028ww2.png
edit: dev-c++ is the program im using
Getting a new problem now, my implementation files have no error anymore but now my main won't compile, i attached every file need to run this if anyone can see what i should omit or add.
ill post...
oh, i see know
btw anon, thats how my prof wanted it made im just following his rules (in reponse to "why does something called ISBNPrefix have a FILE* member in the first place?")
i was going to go the cheap way but my prof would probably want me to redo this assignment again. I don't know how to use the proper way i tried googling get() but i don't know exactly what i am...
i have two .cpp files (actually three but one isnt giving me this problem)
in ISBN.cpp the decode function is calling ISBNPrefix's FILE fp
ISBN.cpp: <<this is the implementation file where...
yeah, thats what i've been doing so im looking through and correcting any silly mistakes
damn, thats alot of problems...how can i use ISBNPrefix's fp because without it this program is useless seeing i need to rewind and read from fp
made the follwing changes:
order.cpp:
#ifndef Order_H
#define Order_H
#include "Order.h"
#include "ISBN.h"
#endif
isbn.cpp:
Yeah i added everything you'd need to compile it in the code.txt, i probably should've bolded the headers that indicated a new .h or .cpp file