Search:

Type: Posts; User: swbluto

Search: Search took 0.01 seconds.

  1. Pushing the output of two programs as input to another program?

    Hello, I'm willing to use either C or C++ to solve this problem (Which ever is better to use) and I'm doing this on a Windows XP platform. I plan on having two independent programs push their data...
  2. I'm going to guess many people here don't bother...

    I'm going to guess many people here don't bother with double pointers and functions. Neither did I until taking this current class...

    Anyways, it turns out my code is correct except I have to...
  3. Ok, so if it's null, then that means it hasn't...

    Ok, so if it's null, then that means it hasn't been allocated? But that was supposedly allocated in the allocateWords function with the following code...



    if ( (words = (char **)malloc(size_x *...
  4. I did and it actually didn't crash! It outputs......

    I did and it actually didn't crash! It outputs...

    <null>

    Now it'd help to understand what exactly is null. Preps is a char** and I believe strings are a char*, so maybe it has something to do...
  5. It still crashes. Here's the entire code with...

    It still crashes.

    Here's the entire code with all the headers and other info, just in case it might be of interest. The other code isn't producing a problem, however, because the program doesn't...
  6. I forgot to delete choice. It's non-essential to...

    I forgot to delete choice. It's non-essential to the problem parts.

    But, if you want, this was at top.

    int choice[3];

    Is the redundancy the source of error?
  7. Creating and Using a dynamic array of C strings?

    Hello, I have this program where I'm creating a list of strings and the list can expand to create more strings. The reason is because users can add words during runtime, and so it needs to be...
  8. Gracias Seņor. The first example worked like a...

    Gracias Seņor. The first example worked like a charm; The string class sput out tons of seemingly unrelated errors(And, yeah, I included the C++ string header file using #include <string>). I'm using...
  9. Replies
    8
    Views
    1,644

    This is easy but tedious. Draw a flow graph if...

    This is easy but tedious. Draw a flow graph if you need help visualizing it. Declare a class with member variables to hold the values you want(Or go old-schoolerz with regular variables) and...
  10. Problem with setting a character array in a class member.

    #include <cstdlib>
    #include <iostream>
    #include <stdio.h>
    #include <iostream.h>
    #define MAX 10

    class inputOutputList
    {
    public:
    char listFileName;
  11. Replies
    8
    Views
    3,174

    I could convert it to some other larger...

    I could convert it to some other larger measurement, but I would have to think about everything to see how it would fit in the whole of the program. Plus I would have to edit some constant values in...
  12. Replies
    8
    Views
    3,174

    yes.. I could place in substitute values for the...

    yes.. I could place in substitute values for the larger ones, but the thing is that one of the variables must compensate for the change, and the the formula's work out for the same large number.. So...
  13. Replies
    8
    Views
    3,174

    Computing Large Values

    I have been making a planetary program to predict the paths of the planets.. but I'm working with very large values because I'm using meters as measurement(for compatability with the formula's) and...
Results 1 to 13 of 13