Search:

Type: Posts; User: Crcullen3916

Search: Search took 0.01 seconds.

  1. Replies
    9
    Views
    5,939

    Okay, that's uncalled for and not really fair. I...

    Okay, that's uncalled for and not really fair. I was a beginner and basically a n00b. You shouldn't insult me just because I was first starting c++. Everyone has to start somewhere, you know. It was...
  2. Replies
    4
    Views
    1,669

    Is there another way to get rid of the newline...

    Is there another way to get rid of the newline character, like cin.ignore or something like that?
  3. Replies
    4
    Views
    1,669

    help with class structure assignment

    I'm doing an assignment where you have to create class structures. The problem I'm having is when you read in a string into the array. Here is my program so far:



    #include <iostream>
    #include...
  4. Replies
    4
    Views
    1,017

    Thanks I fixed the first part by using getline()...

    Thanks I fixed the first part by using getline() but how would I convert the strings read to ints for year and pagenums?
  5. Replies
    4
    Views
    1,017

    Classes program

    Hi, I am doing a assignment in which I have to create classes to store information about my books. However it is not working because I am getting crazy output and I don't know what's wrong. I keep on...
  6. Replies
    2
    Views
    849

    Help with String functions

    I am having trouble with finding and erasing part of a string. For example, the string "pork and beans". We had to find the first occurrence of "and" and place "not" after the "and" to make it "pork...
  7. Replies
    5
    Views
    5,098

    I haven't learned maps yet. I looked it up and...

    I haven't learned maps yet. I looked it up and it's way past my level. I think I'll wait on this one, maybe talk to my professor, it's optional anyway.
  8. Replies
    5
    Views
    5,098

    Finding the mode of an array

    I am trying to find the mode, or the number which occurs most often, of my array. This is the scores array, which is sorted:



    820
    987
    1000
    1020
    ...
  9. Replies
    9
    Views
    5,939

    finding max/min in a sorted array

    Okay, I know this is probably really simple. I know how to find max/min in an unsorted array, but what about if the array is sorted? Is it the same thing as this, in an unsorted array:


    int...
  10. Replies
    8
    Views
    1,631

    Thank you all, I didn't realize that I didn't...

    Thank you all, I didn't realize that I didn't call the function at all, can't believe I didn't see that :rolleyes:
    I reversed the less than sign, so it works good now
  11. Replies
    8
    Views
    1,631

    I think there's something to do with the rest of...

    I think there's something to do with the rest of the program:


    #include <iostream>
    #include <fstream>
    using namespace std;
    ifstream file_in;
    const int SIZE = 25;
    void readdata (int [], int...
  12. Replies
    8
    Views
    1,631

    Actually it compiles but doesn't sort...

    Actually it compiles but doesn't sort...
  13. Replies
    8
    Views
    1,631

    Oh! I didn't see that, thanks it works now

    Oh! I didn't see that, thanks it works now
  14. Replies
    8
    Views
    1,631

    help, bubble sort function

    I'm trying to use a bubble sort in my function, but I keep getting a message saying "Invalid types 'int[int]' for array subscripts"
    So it won't compile. At least the switching of the second array...
  15. Replies
    2
    Views
    7,993

    Thank you so much, I got it right now :)

    Thank you so much, I got it right now :)
  16. Replies
    1
    Views
    3,257

    problem with function help

    I have another problem I've spent a long time trying to solve. I know it's probably really simple but I cannot get it to work.

    Here's the problem:
    Write the definition of a function powerTo ,...
  17. Replies
    2
    Views
    7,993

    Help with Reverse Array

    I've tried and tried to solve this problem, but I cannot do it. Here is the question:

    Write the definition of a function, isReverse , whose first two parameters are arrays of integers of equal...
Results 1 to 17 of 17