thanks heaps guys.
very helpful :)
Type: Posts; User: twans
thanks heaps guys.
very helpful :)
fantastic, thanks for the help :)
any ideas when i call
cin >> paramCommand;
it does not function?
heyas,
if anyone could enlighten me as to why this is not acting as intended i'd be greatly apprecitive :)
it is *meant* to store the following
vector index 0: assume
vector index 1:...
thanks for your reply,
it made no effect on the errors however.
just out of curisity will it take the first 10000 lines OR newline, which ever is first? i cannot guarentee anything other than...
heyas,
i know this is a very big ask, but im recieving the following error and its driving me n_u_t_s. ill post both the error and the class that's causing it, any assistance or suggestions would...
great!
thanks for your help
i was confusing template classes for simply adding additional , generic methods, but in fact they are -as you informed me- new classes in themselves.
i appreciate...
ahh, i think i understand..
the actual whatever<int> is a differnt object to int itself, correct? so my whatever<string> s; might create an object with methods size(), operator<< etc which are...
whatever<T>::whatever(string) {//implementation} actually works and compiles fine.
so if one calles
whatever<int> s("hello");
do we get an object of type whatever<int> ? and does it has...
so can a template have an actual constructor?
what if we have the following scenario:
string s;
whatever<s> p;
does this create an instance of the template called p of type s?
im finding...
is this defining the actual size() variable for all objects passed into the template?
that should read size() method..
heya,
im a little confused about an issue with templates..
i understand templates can be used to pass multiple objects (e.g related by inheritance) and one may call template<class T>'s methods...
its sorted,
thanks anyways/
heya,
i have a makefile which is pasted below. on execution i get the following:
-bash-2.05b$ makefile
./makefile: line 1: CC: command not found
./makefile: line 2: CFLAGS: command not found...
can the modulus operator be used on floats?
-thanks for the reply too sean.
works a charm,
those that are interested
#include <cmath>
floor(float);
my appologies,
those times should read:
24.00
09.00
14.30
as im storing them as floats! :P
heyas,
i was wondering if theres a way to determind if a float has a decimal value?
i.e i might have the following times
24:00
09:00
14:30
fantastic reply. thanks, answered exactly what i was after.
-twans
thanks for your reply.
what about the fareyList.h which is causing the error? is it path related although their all in the same folder?
is the #include "fareyList.h" legal? if so is it...
heya,
i have a c++ header in *.h format. I have put
#include <iostream.h>
#include <fareylist.h>
but am given the error: unable to open include (referring to fareylist.h>
i am running...
salem, again you have a quick and accurate response.
thanks!
:P
heyas,
the replace fuction below is causing a segmentation fault -not sure why. this is really frustrating.. any help would be much appreciative.
the line causing the problem is:
(*newln)...
hi salem, thanks for your reply. if you look at my isString method, however, it will always return 0. i was trying to use a pointer to the 'text' variable to modify it as required. therefore your...
hey there,
i have a very trivial program which is given a text file as a parameter, and basically has to print any of the characters in the file which are characters (i.e. not numbers etc)...
salem, thanks so much
i cannot tell you how long its been fustrating me, and all for a silly "\n" newline character!
thanks again , ill be sure to post again soon
:)
-twans