can anybody tell me how these work. my book is kinda confusing..and when i do what i think will work ,it just comes out whever it wants to. this is what i have and it doesn't line up like i want it...
Type: Posts; User: ForlornOdium
can anybody tell me how these work. my book is kinda confusing..and when i do what i think will work ,it just comes out whever it wants to. this is what i have and it doesn't line up like i want it...
still didnt work
these setioflags and things are a little confusing to me. i tried ot write a progrm so i'd understand but it says its an undeclared identifier? and it says that setw is not a member of...
i would love to write it the right way, but i dont understand whats wrong with it. the book tells me to write this program and then it doesnt say how to use the constructors in sub classes.
why do i keep getting this error that says theres not appropriate default constructor for the LabCourse?
#include<iostream.h>
#include<string.h>
class CollegeCourse
im getting better at all this stuff. i can fix most of my errors on my own. but im getting linking errors now and i have no clue how to fix them. anybody know whats wrong with this?
heres my...
oh, wow! i didn't even see that! thanks!
yes, im using microsoft c++ version 6 from visual studio 6.0. the second program is from another problem in the book i have. i made it and compiled it and it works fine, but the first one i still...
why can the members be accessed int his program below, but not the one i posted earlier. they look to be the same structure to me.
#include<iostream.h>
#include<string.h>
class Meal
{
why can't i use the members of the class as part of jobA?
i've been looking over my work more and i think i got the hang of all that other stuff i've been doing...but this overloading stuff is a little confusing. would this program be right if i was trying...
i know its private, but is there a way i can access it without changing it to public?
i can't get this to read right! eitehr i have a problem with the objects in the pet class..or the ones in the veterinarian class.
void Pet::displayValues(Veterinarian vet)
{
...
does anybody know why in my display values function, it says that anything that has to do with the veterinarian class is an undefined type of Veterinarian. my friend, who thinks he knows what he's...
heres a new program im workin on... what needs to be done to fix these errors?
error C2027: use of undefined type 'Veterinarian'
see declaration of 'Veterinarian'
error C2228: left of...
ok, well i sat down to actually look over the code and with the help of the book and you guys, i got it down to just saying that the variables in the declaration of the displayCustInfo function are...
error C2440: 'default argument' : cannot convert from 'char [6]' to 'const char'
This conversion requires a reinterpret_cast, a C-style cast or function-style cast
rror C2548:...
somebody help me with this...im really confused
#include<iostream.h>
#include<string.h>
class City;
class Customer
ok, i see what i did wrong, thanks guys.
i forgot i changed the code.
#include<iostream.h>
class StudentGrade
{
private:
int idNum;
char name[20];
why is my output comming out like it is? where the vairables should have been, are either really big or small numbers, or random characters.
>.< tons of friggin logic errors now. i'll figure it out. thanks codeplug.
ok, i worked a while on this program and worked out all of the bugs myself except this one error i keep getting saying
error C2440: '=' : cannot convert from 'char [2]' to 'char'
This...
stupid me, i didn't notice that i made it an win32 app.. thanks. i would have never figured that out. heh
I got the program to work that i was using and then I decided to make another version of it where it will go through the process multiple times. I compile it and get no errors, but when i go to run...