dont worry about it,,got it!!!
Type: Posts; User: sami
dont worry about it,,got it!!!
I did wha tyou suggested V and its still gives me the exact same errors?????
any other ideas?????
and here is my canvas class if thats going to be any help,,,,i am spending hours on it and zilch...
i actually forgot to give you the error,,,oops
here it is:
when i compile like so:
$ g++ -o main main.cc Image.cc canvas.cc command.cc
i get:
command.cc: In function `bool cmd_line(istream...
hi guys,,,can u plz tell me why i get the following error when i compile my 4 files?????
i have in my image.h file :
#include <vector>
#include "colour.h"
#include <iostream>
#include...
hi all,,,,
if i create a map of key string and value, a class called image,,,,eg:
map(string,image) ,,,where image is a class,,,,,,how can i add new elements to the map???? so if i have a function...
thank you zen so much,,,i think thats exactly what i need,,,and yes i do mean STL map,,,by the way does anyone know where i can find some good exaple coding for maps,,,,i can't find any on the web!!!!
I put class as the heading bc i am trying to create the image class,,,,i think i am not explaining myself very well,,,,,here is the deal,,,,,we are given these .h and .c files which are the codes for...
thanx for the quick reply,,,,but no i dont think i need inheritance,,,the thing is that i need to put all these functions( they are not specified as classes,,,they are just files) into an image class...
hi guys,,,
before i ask for your help again,,i wanted to thank those of you who answered my last post,,it was a great help.
this time i was wondering ,,if i have created .h file and .c file classes...
hi all,,,,
can anyone tell me what is a segmentation fault????? when i try to run this piece of code,,,,it compiles ofcourse but then when i try to run it it goes segmentation fault (core dumped)...