Search:

Type: Posts; User: twans

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Thread: string find

    by twans
    Replies
    5
    Views
    975

    thanks!

    thanks heaps guys.

    very helpful :)
  2. Thread: string find

    by twans
    Replies
    5
    Views
    975

    fantastic, thanks for the help :) any ideas...

    fantastic, thanks for the help :)

    any ideas when i call

    cin >> paramCommand;

    it does not function?
  3. Thread: string find

    by twans
    Replies
    5
    Views
    975

    string find

    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:...
  4. Thread: compile error

    by twans
    Replies
    3
    Views
    897

    thanks for your reply, it made no effect on...

    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...
  5. Thread: compile error

    by twans
    Replies
    3
    Views
    897

    compile error

    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...
  6. Replies
    24
    Views
    3,110

    great! thanks for your help i was confusing...

    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...
  7. Replies
    24
    Views
    3,110

    ahh, i think i understand.. the actual...

    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...
  8. Replies
    24
    Views
    3,110

    whatever::whatever(string) {//implementation}...

    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...
  9. Replies
    24
    Views
    3,110

    so can a template have an actual constructor? ...

    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...
  10. Replies
    24
    Views
    3,110

    is this defining the actual size() variable for...

    is this defining the actual size() variable for all objects passed into the template?

    that should read size() method..
  11. Replies
    24
    Views
    3,110

    template constructor

    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...
  12. Thread: makefile

    by twans
    Replies
    3
    Views
    7,146

    its sorted, thanks anyways/

    its sorted,

    thanks anyways/
  13. Thread: makefile

    by twans
    Replies
    3
    Views
    7,146

    makefile

    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...
  14. Replies
    9
    Views
    1,745

    can the modulus operator be used on floats? ...

    can the modulus operator be used on floats?

    -thanks for the reply too sean.
  15. Replies
    9
    Views
    1,745

    works a charm, those that are interested ...

    works a charm,

    those that are interested


    #include <cmath>

    floor(float);
  16. Replies
    9
    Views
    1,745

    my appologies, those times should read: ...

    my appologies,

    those times should read:

    24.00
    09.00
    14.30

    as im storing them as floats! :P
  17. Replies
    9
    Views
    1,745

    floating point value

    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
  18. Thread: include files

    by twans
    Replies
    4
    Views
    1,210

    fantastic reply. thanks, answered exactly what i...

    fantastic reply. thanks, answered exactly what i was after.

    -twans
  19. Thread: include files

    by twans
    Replies
    4
    Views
    1,210

    thanks for your reply. what about the...

    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...
  20. Thread: include files

    by twans
    Replies
    4
    Views
    1,210

    include files

    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...
  21. Replies
    2
    Views
    919

    salem, again you have a quick and accurate...

    salem, again you have a quick and accurate response.

    thanks!

    :P
  22. Replies
    2
    Views
    919

    segmentation fault

    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)...
  23. Replies
    3
    Views
    1,389

    hi salem, thanks for your reply. if you look at...

    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...
  24. Replies
    3
    Views
    1,389

    simple string program

    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)...
  25. Replies
    2
    Views
    1,143

    salem, thanks so much i cannot tell you how long...

    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
Results 1 to 25 of 35
Page 1 of 2 1 2