Search:

Type: Posts; User: kippwinger

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    1,227

    Stripping Files out of Dirs

    Hey,
    I am looking to create a program/script that will go through 1 directory and look for the file extension .jpg . Now, this directory will have subdirectories and I need the program to be able...
  2. Replies
    5
    Views
    1,323

    Ilovevectors: thanks for the tip. 7stud: It...

    Ilovevectors: thanks for the tip.

    7stud: It sounds easy enough to code. I just wanted it to be easier in that I didn't want to have to create somthing else for this to work (reading data into...
  3. Replies
    5
    Views
    1,323

    hmm. Well, I was hoping I wouldn't have to do...

    hmm. Well, I was hoping I wouldn't have to do that. I was hoping that there would be a simple solution. Like ios::nocreate and some other instruction to keep it at the top. Oh well. Thanks for...
  4. Replies
    5
    Views
    1,323

    adding text to top

    Hey, I am trying to add text to the top of a text file via a c++ program. Sound confusing? Okay, my program starts out by asking for input. When done entering the input, it outputs it to a text...
  5. Replies
    12
    Views
    1,285

    Well, I guess I got so caught up in trying to add...

    Well, I guess I got so caught up in trying to add two strings together I forgot why I was trying to do it in the first place. I tried creating a new struct from the combined string and that...
  6. Replies
    12
    Views
    1,285

    Instead of doing anything too complicated, it...

    Instead of doing anything too complicated, it came down to something as simple as using the string conversion in the FAQ and this code:


    int number=5;
    string test="data";
    string final;
    ...
  7. Replies
    12
    Views
    1,285

    Lithorien re-phrased my question perfectly. ...

    Lithorien re-phrased my question perfectly. However, I will try JaWiB's idea.. I just took a class in Python and it seemed to be more user friendly than C++ is.. I guess I'm just spoiled. I'll let...
  8. Replies
    12
    Views
    1,285

    Is there anyway to create a counter to be...

    Is there anyway to create a counter to be incrimented and added to a struct name like:



    int elem=0;

    elem++;
    //create struct to hold copied data
    struct DataCopy;
    //add incrimented variable...
  9. Replies
    12
    Views
    1,285

    Thanks, that helped a lot. I may have some more...

    Thanks, that helped a lot. I may have some more questions concerning structs. Would it be easier to use classes? I haven't gone over this stuff in about a year. Just brushing up.
  10. Replies
    12
    Views
    1,285

    string input problem

    I am trying to create an inventory-esque program. I want to be able to enter in some data about a product and then save it into another struct and then enter another if so desired. The problem is i...
  11. Replies
    7
    Views
    2,222

    basically i need to create a counter to count how...

    basically i need to create a counter to count how many times the fxn is called recursively. Say like this:



    int timer(int moves)//fxn to calculate # of moves
    {
    return moves++;
    }

    void...
  12. Replies
    7
    Views
    2,222

    no one has any suggestions?

    no one has any suggestions?
  13. Replies
    7
    Views
    2,222

    Adding a timer to a recursive function

    Hey, I have a recursive fxn that happens to be the algorithm for the Tower of Hanoi. I need to count how many times it makes a move, but I do not know where to add the simple code of move++ or...
  14. Replies
    9
    Views
    1,206

    awesome, thanks... i forgot about that fxn

    awesome, thanks... i forgot about that fxn
  15. Replies
    9
    Views
    1,206

    Anyone have any idea on this last problem. It is...

    Anyone have any idea on this last problem. It is the last thing I am stuck on.

    Thanks
  16. Replies
    9
    Views
    1,206

    tried that.. still gives me "error" ...

    tried that.. still gives me "error"



    #include <iostream>
    #include <fstream>
    using namespace std;
    ifstream infile;
    ofstream outfile;
  17. Replies
    9
    Views
    1,206

    okay, hopefully this will be my last post .. I...

    okay, hopefully this will be my last post .. I got it to work the way I wanted but one last thing. I need to edit the file I am writing to right after I write to it.
    I tried this new code jsut to...
  18. Replies
    9
    Views
    1,206

    Okay, I have decided to create a new file to copy...

    Okay, I have decided to create a new file to copy the data to along with the end tolkien. It copies the data without the endlines which makes me believe I might need to use getline(). It still...
  19. Replies
    9
    Views
    1,206

    appending to a file

    This should be easy to answer.
    I have a file with many lines of numbers
    ie: 3+4/8
    8-(5+3)
    ....
    Anyway, I need to add the $ character to the end of each line. I forgot how to do this...
  20. Replies
    5
    Views
    1,279

    Yeah, I noticed, I changed it to an if statement...

    Yeah, I noticed, I changed it to an if statement and that seemed to work.. thanks for the help
  21. Replies
    5
    Views
    1,279

    The Game of Life problem

    Hey, I have an assignment called the Game of Life. If you haven't heard of it, feel free to look it up. Anyway, the problem I am having is the algorithm I have to compute if the living cell has...
  22. Replies
    2
    Views
    1,310

    Thank you for your help. That helped out a whole...

    Thank you for your help. That helped out a whole lot!

    My code for calculating the data is still incorrect though. I need to fix that somehow.

    If anyone can show me also, how to impliment...
  23. Replies
    2
    Views
    1,310

    segmentation fault

    Yes, another question with hopefully an easy solution.
    I keep getting a segmentation fault error in g++ when I try to run a.out.. I get some different errors in Visual c++ though. The main program...
  24. Replies
    8
    Views
    3,809

    No, its not a requirement. But now the code is...

    No, its not a requirement. But now the code is giving me errors about the variable CAPACITY... It says its not a member of the class, which it isn't... IT'S GLOBAL!! ugh... I will keep on working...
  25. Replies
    8
    Views
    3,809

    jesus, thats 2 mistakes that could have been...

    jesus, thats 2 mistakes that could have been easily avoided. I'm still get some errors though. I do not believe they are typos either.

    anyway, I am still getting errors on the + operator...
Results 1 to 25 of 81
Page 1 of 4 1 2 3 4