i have a question..
what the advantages/disadvantages of using classes through inheritance or through composition?
Raz
Type: Posts; User: razrektah
i have a question..
what the advantages/disadvantages of using classes through inheritance or through composition?
Raz
when i run these programs (with the errors still intact) once on VC++ and the other on UNIX.. i get different error behaivors.. why is that?
Raz
whats wrong with the following 2 programs? is it stricly a memory management problem which depends where u compile it?
#include <iostream.h>
#include <string.h>
char *foo1()
{
char b[10];...
so i have a driver using linked lists and doin shallow copying...
but how do i overload the assignment operator so it will use deep copying when it assigns a linked list to another linked list?
...
//listnd.h
#ifndef LISTND_H
#define LISTND_H
template< class NODETYPE > class IndexedList;
template<class NODETYPE>
class ListNode {
friend class IndexedList< NODETYPE>;
hmm..
well i'm compiling a console app, and i incuded the source file.. but i'm still gettin the error.
any ideas? :(
RAZ
hmm... well ive been compiling a console app..
but to tell u the truth.. i dont kno the difference between a winMain and a main.
i 'think' im using a main but im not sure..
what makes it a...
VC++
i kno this is a really general "?" but im gettin this error:
Linking...
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/project.exe : fatal error LNK1120: 1...
ive been trying to find some info on this shallow/deep copying that i heard about.. but i can't seem to find it.
What is the difference between the two, and is this applicable only to linked...
omg duh! that was pretty dumb.. it was killin me.. lol
thx!!
the error occurs when i compile the previous mentioned code on is own.. w/o linkin it..
but here is the code for date.h
#ifndef DATE_H
#define DATE_H
#include <iostream>
#include <cstring>
...
why am i gettin this error?
Compiling...
proj5.cpp
C:\Windows\Desktop\c++2\lab6\proj5\proj5\proj5.cpp(6) : error C2628: 'Date' followed by 'int' is illegal (did you forget a ';'?)
Error...
yea i kno the time.h functions.. i just wasnt sure on the ctime ones..
i know its harder... but if anyone has a chance.. can you help me out? i need the day, month and year... not the time..
...
hello...
how do i get the current date using the <ctime> header?
thanks
Raz
a quick question...
in my hwork assignment, i was given a implementation file and a header file.
it then said " create a ddriver to perform -blah blah blah- utilizing the files given to you"
...
in a nutshell..
what does the stack function do?
thanks
raz
thanks!!
that just cut my programing code into half lol.
Razrektah
hello..
im writing a program that thats suppose to convert and print in a table numbers 1-500 into binary/octal/hexadecimal format..
i not having that much trouble with octal and hexadecimal...