Search:

Type: Posts; User: XodoX

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Thread: Linked lists

    by XodoX
    Replies
    3
    Views
    905

    I don't know.

    I don't know.
  2. Thread: Linked lists

    by XodoX
    Replies
    3
    Views
    905

    Linked lists

    I really need some who can show me how to do this. I'm getting deperate. I just can't get it to work :(

    That's the input in the text file and it includes the output (print). The output won't be in...
  3. Replies
    1
    Views
    1,890

    Load info form txt file into array

    It's a simple program I think. It just needs to sort the input that is in a txt file.

    The input will be this, for instance: This is is an an icorrect sntence.



    And the output will be: This...
  4. Replies
    3
    Views
    5,332

    I obviously did that, but it needs to evaluate...

    I obviously did that, but it needs to evaluate the function, do the operation count (T(n)) and worst-case time complexity with O(g(n). I don't get it.
  5. Replies
    3
    Views
    5,332

    Time complexity program/recursive functions

    It's a rather simple program, actually.

    It's a C++ program that will count the number of operations of two common recursive functions.
    This operation count will be basically estimate time...
  6. Replies
    7
    Views
    18,643

    Like I said in the OP. Like those codes in the...

    Like I said in the OP. Like those codes in the input file.



    class A {
    int a[11],x,y,z;
    char *oneString;
    public:
    A() { oneString= new char[100]; }
    ˜A() { delete oneString; }
  7. Replies
    7
    Views
    18,643

    I mean the code in the input file. The code that...

    I mean the code in the input file. The code that I posted in the OP. That's the input file. The program takes the input file and then lists whatever is in there. So it needs to have a path to the...
  8. Replies
    7
    Views
    18,643

    It's just supposed to pull the data from the...

    It's just supposed to pull the data from the input file and create an output file. Like a simplified lexical analyzer. I can't find an example online though.
  9. Replies
    7
    Views
    18,643

    C++ parser/ simplified lexical analyzer

    I'm looking for a C++ parser/simplified lexical analyzer that pulls the data from one file and puts it into another txt file. The input files look similar to this one..



    class A {
    int...
  10. Replies
    7
    Views
    2,030

    std::set which prevents you from adding...

    std::set which prevents you from adding duplicates could be used too, right?
  11. Replies
    7
    Views
    2,030

    Well, I don't know. What if it's not sorted?

    Well, I don't know. What if it's not sorted?
  12. Replies
    7
    Views
    2,030

    using arrays for set operators

    I want to use arrays to program a calculator that uses set operatiors. Like:

    A= 1,2,3,4 B=1,2,3,4,5

    A union B = 1,2,3,4,5

    I'm asking the user for the input, but after that I'm stuck. I guess...
  13. Replies
    6
    Views
    1,465

    Yes, that's what I wanted to do...

    Yes, that's what I wanted to do...
  14. Replies
    6
    Views
    1,465

    At least one helpful comment, thanks. It's...

    At least one helpful comment, thanks. It's working now.
  15. Replies
    6
    Views
    1,465

    arithmetic operations

    Hello,

    I want to calculate the average, median, mode and range of some numbers. It's supposed to read the numbers from a file.

    The file got:


    int...
  16. Thread: 2 questions

    by XodoX
    Replies
    7
    Views
    966

    oops, my bad! Thanks! It's == and works now....

    oops, my bad! Thanks! It's == and works now. Tells me if it's a number or letter. But I left the bool.
  17. Thread: 2 questions

    by XodoX
    Replies
    7
    Views
    966

    Yeah, probably the letters. I was gonna use...

    Yeah, probably the letters.

    I was gonna use if/else and bool to get the answer if it's a letter or digit.



    int main(void)
    {

    bool n;
  18. Thread: 2 questions

    by XodoX
    Replies
    7
    Views
    966

    2 questions

    Hello,

    I need to do 2 things. One program is supposed to check if the entered character is a letter or a digit. Can I use bool to do this? Or is there something better?
    I thought I could use the...
  19. Thread: arrays

    by XodoX
    Replies
    2
    Views
    935

    I don't get any output at all.

    I don't get any output at all.
  20. Thread: arrays

    by XodoX
    Replies
    2
    Views
    935

    arrays

    Hello, I've got problems with the following code.




    // Headers and Other Technical Items

    #include <iostream>
    #include <fstream> // For file I/O
    #include <iomanip> // For...
  21. Replies
    8
    Views
    2,233

    I came up with this now.. { average =...

    I came up with this now..




    {
    average = 0;
    sum = 0;
    for (int i = 0; i < array_size; i++)
    sum += things[i];
  22. Replies
    8
    Views
    2,233

    Ok, that will work. So basically the...

    Ok, that will work. So basically the average_array to capture the already calculated sum. I'll try that.
  23. Replies
    8
    Views
    2,233

    No, it wasn't. I don't know , I just dont get...

    No, it wasn't.

    I don't know , I just dont get it. So I just modify it so that I can get the sum?
  24. Replies
    8
    Views
    2,233

    Thanks. Well, the teacher is kind of strange. ...

    Thanks. Well, the teacher is kind of strange.

    Do you mean this part?



    int sum_array(int things[], int array_size)
    {
    int total = 0; // Accumulator
  25. Replies
    8
    Views
    2,233

    sum an array using function

    Hello,

    I created the following code:



    // Headers and Other Technical Items

    #include <iostream>
    #include <fstream> // For file I/O
Results 1 to 25 of 72
Page 1 of 3 1 2 3