Search:

Type: Posts; User: stautze

Page 1 of 8 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    2,277

    how free ipods works

    I already got one and so did my friend. Hard as it is to beleive, it is legit. The only thing you have to do is sign up for an offer (that you can cancel) and five other to do the same. So...
  2. Thread: fgets

    by stautze
    Replies
    14
    Views
    1,958

    mahalo

    mahalo
  3. Replies
    4
    Views
    3,629

    here is a page at my school that can explain how...

    here is a page at my school that can explain how it dependencies work and how to create a make file better thatn I can.....
    http://www.eng.hawaii.edu/Tutor/Make/
  4. Thread: fgets

    by stautze
    Replies
    14
    Views
    1,958

    my mistake, I just typed that out as an example...

    my mistake, I just typed that out as an example of what I was doing, and I haven't coded in a while.... but I am using the correct parameters when I call fgets, I just wanted to know who you can get...
  5. Thread: fgets

    by stautze
    Replies
    14
    Views
    1,958

    fgets

    I am using fgets like this:


    fp=fopen("test.txt","r"); //open file

    while(fgets(string,'\n',fp) != NULL){

    count++;

    if(strcmp(string, start) == 0){
  6. Replies
    1
    Views
    810

    Thats what I was looking for. My textbook...

    Thats what I was looking for. My textbook doesn't have an example of friend classes. Thanks....

    I wonder if I could accomplish the same thing with handles, and if so which way is better, handles...
  7. Replies
    1
    Views
    810

    help with classes and pointers

    I am trying to create an object "C" than contains an array of "B" objects, and each of these "B" objects conatins an array of "A" objects. Actually creating the objects is not the problem, the...
  8. Replies
    4
    Views
    7,107

    here's an insertion sort template...

    here's an insertion sort



    template<class T>
    void insertionSort(std::list<T>& listRef)
    {
    list<T>::iterator iter1, iter2, iter3;
    iter1 = listRef.end();
  9. Thread: stl list

    by stautze
    Replies
    3
    Views
    1,019

    thanks

    thanks
  10. Thread: stl list

    by stautze
    Replies
    3
    Views
    1,019

    stl list

    What is wrong with this:




    template<class T>
    void printList(const List<T> &list)
    {
    ...
    }
  11. Replies
    12
    Views
    1,351

    Sorry then, i am doing a hw assignment with...

    Sorry then, i am doing a hw assignment with strings right now, and i am a bit baffled myself...
  12. Replies
    12
    Views
    1,351

    I have never really worked with the string class...

    I have never really worked with the string class before, so I can't really help you out there. If you want to use an array though, you could do it like this:

    [code]

    char rawinput[80];
    char...
  13. Replies
    12
    Views
    1,351

    I'm not saying this is the best way to do this......

    I'm not saying this is the best way to do this... I did an assignment like that a while ago and i used getline to input the string into an array. Then i just used a loop to copy every character...
  14. Replies
    10
    Views
    2,450

    thanks

    thanks
  15. Replies
    10
    Views
    2,450

    thanks for the good answer. I still have another...

    thanks for the good answer. I still have another question though. :)

    All i need to do with the struct defintion then is to put it in the header file that is included in every cpp file?

    ...
  16. Replies
    10
    Views
    2,450

    thanks for the replies, i understand every thing...

    thanks for the replies, i understand every thing except how to declare the global variable. What i really have is an array of structs.




    typedef struct tile {
    bool furniture;
    bool cat;...
  17. Replies
    10
    Views
    2,450

    sorry, one more question. I know how to delete,...

    sorry, one more question. I know how to delete, but how do i test to make sure the memory is allocated.
  18. Replies
    10
    Views
    2,450

    what if i have functions in several different cpp...

    what if i have functions in several different cpp files that all need the global array? Is this possible?
  19. Replies
    10
    Views
    2,450

    global variable

    i need to make a dynamic global 2d array....

    will this work....




    //inside of header file, but outside of function
    int p**
  20. Replies
    19
    Views
    5,322

    what kind of computer do you have, i bet it is...

    what kind of computer do you have, i bet it is either really new or really old. like everybody else said it is probably a problem with your kernel autodetecting something. for example you could...
  21. Replies
    12
    Views
    2,826

    are they equivilent?

    are they equivilent?
  22. Replies
    14
    Views
    2,986

    > "I am new to c++", and you're telling him to...

    > "I am new to c++", and you're telling him to throw and catch exceptions already? And throwing classes at that?? Yeesh, might as well tell him to learn Winsock API! (I heard that's difficult to...
  23. Replies
    14
    Views
    2,986

    >Of course your version will likely be more...

    >Of course your version will likely be more robust than mine (access restictions...) but that's a basic idea

    probably not :), whats an access restriction?
  24. Replies
    14
    Views
    2,986

    correct me if i am wrong, but the way you have it...

    correct me if i am wrong, but the way you have it written the class DenominatorIsSetAsZeroException needs no members?

    Would it look like this though if I added members:


    class...
  25. Replies
    14
    Views
    2,986

    fordy, thanks i like how you did that, and i want...

    fordy, thanks i like how you did that, and i want to use it. But i don't understand everthing you did.

    In particular the line under public:
    class DenIsSetAsZeroException{};//exception for use...
Results 1 to 25 of 197
Page 1 of 8 1 2 3 4