Search:

Type: Posts; User: cdonlan

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    3,055

    Ok thanks, would it be better to sort the text...

    Ok thanks, would it be better to sort the text file or call a function to do it?
  2. Replies
    4
    Views
    3,055

    Anagram program

    I cannot get this anagram program to work. Does anyone have any ideas. It finds the words in the dictionary,but i doesnt find any anagrams. Does any see a bug. Ive looked at this thing for like 6...
  3. Replies
    2
    Views
    792

    iterator copy problem

    Im trying to get a list of words off a text file into an iterator. I tried using the copy function from fstream but i havent had any luck.




    #include<iostream>
    #include <fstream>...
  4. Replies
    8
    Views
    1,254

    Regardless of where I call the initialize...

    Regardless of where I call the initialize function it will still get an error in the function. I need throw it in the operator function.
  5. Replies
    8
    Views
    1,254

    Cause then you would reinitialize it everytime...

    Cause then you would reinitialize it everytime you used that operator.
  6. Replies
    8
    Views
    1,254

    I understand that, but how to I prevent having to...

    I understand that, but how to I prevent having to initialize each element.
  7. Replies
    8
    Views
    1,254

    Well,l im working on an exercise using exception...

    Well,l im working on an exercise using exception handling. So I want it to be a fixed size so I can cause it to have a run-time error.
  8. Replies
    8
    Views
    1,254

    problem with overloader bracket operator

    Hey guys ive created an overload bracket operator. For some reason I had to create an initialize function to set the array value. After it is set, the overloaded operator works fine. I would like to...
  9. Replies
    2
    Views
    738

    Operloading operators w/templates

    Hi guys
    Im trying to overload the [] operator so I can read and write into an object.
    Ex.


    Arrray_class <int> age;

    age["Bob"]=30;
  10. Replies
    1
    Views
    1,745

    cin to array of chars

    Hello everyone,
    Im trying to scan in an several chars from the console using cin. The format will be one char sperated by a space. I want to put them in an array of chars. I dont want to have...
  11. Replies
    2
    Views
    2,021

    any ideas people?

    any ideas people?
  12. Replies
    2
    Views
    2,021

    PPM file image crop bug

    Hey guys im working with a program that does manipulations to simple images( in PPM format). Im trying to crops an image by a rectangle thats (x1,y1),(x2,y2). The image is 38 by 39, but I started...
  13. Replies
    3
    Views
    1,188

    OK, that makes since. I dont know what I was...

    OK, that makes since. I dont know what I was thinking.
    Again everyone thanks for the quick reply
  14. Replies
    3
    Views
    1,188

    algorithm problem

    Hey guys Im having a probelm with my algorithm . Im trying to copy data from a asci ppm file(which is just a text file really) into a 2-d array of structs. The order it should go in is...
  15. Calling a member function from a different file

    Hi guys
    Im having some problem calling a member function in my main.cpp file. The class is in a header file and the member function itself is located in an addational cpp file. Im getting a linker...
  16. Replies
    2
    Views
    15,161

    Change Name of a.out

    Hey guys Im wanting to change the execution command for a little c++ game ive made. Is there a way to change a.out to the title of the game?
  17. Replies
    7
    Views
    1,301

    2D Array spreadsheet question

    Hey guys im writing a program that uses a speadsheet like map. I want to check when the person goes off the map but i dont know how to compare 2D arrays like I did 1Ds

    I would do this...



    if...
  18. Thread: atoi problem

    by cdonlan
    Replies
    2
    Views
    1,122

    thanks

    thanks
  19. Thread: atoi problem

    by cdonlan
    Replies
    2
    Views
    1,122

    atoi problem

    Hi guys, im having a segmentation fault in my program coming from an atoi.


    #include <iostream>
    using namespace std;


    int main(int argc, char *argv[]) {
    int num;
  20. Replies
    3
    Views
    1,213

    You the man Kleid-O! :)

    You the man Kleid-O! :)
  21. Replies
    3
    Views
    1,213

    arguments in main

    So I have decided to put down the ms c++ and go linux for my first program this semester. It went well, got the hang of emacs,g++, and gtb. I was thinking "Hey , I can deal with this stuff. No need...
  22. Replies
    22
    Views
    4,330

    Thanks a lot guys

    Thanks a lot guys
  23. Replies
    22
    Views
    4,330

    For some reason it does not like the strrev...

    For some reason it does not like the strrev function. I included all the header files.
  24. Replies
    22
    Views
    4,330

    If I only need bases 3 ,5,7, and 9. And the...

    If I only need bases 3 ,5,7, and 9. And the largest the number could go up to is 1,000,000 I could cut out a lot of that stuff In the 10 to b-base function.
  25. Replies
    22
    Views
    4,330

    Base converter library

    Im trying to convert a number to a different base. Does anyone know what library has the converter in it.

    Thanks
Results 1 to 25 of 51
Page 1 of 3 1 2 3