Search:

Type: Posts; User: tonedogz71

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    13
    Views
    1,076

    need to see if yall can help me out with this...

    need to see if yall can help me out with this program, almost done. 1st problem is when it sorts the names that the user enters it prints them down 20 carriage returns down. Of course if I enter 20...
  2. Replies
    13
    Views
    1,076

    just starting this program. Can somebody tell me...

    just starting this program. Can somebody tell me why i am gettng a getline not defined error?


    #include<iostream>
    #include<cstring>
    using namespace std;
  3. Replies
    13
    Views
    1,076

    thanks guy. Yes i just threw that 256 in there as...

    thanks guy. Yes i just threw that 256 in there as a number because the assignment called for no more than 20 names and the names could be of any length, but he would rather us figure out how to make...
  4. Replies
    13
    Views
    1,076

    for some reason in every program i work on when i...

    for some reason in every program i work on when i use strings and getline() i always get the error that getline is undefined and in my bubblesort on every instance of names[] i get Error cannot...
  5. Replies
    13
    Views
    1,076

    Few questions about this array program

    I have a program i need to write. It asks the user to enter names and then stores them in an array, takes input until the "enter" key is the first character of a string. I also need to make the...
  6. Replies
    17
    Views
    2,525

    finished product. Works like a champ. Thanks to...

    finished product. Works like a champ. Thanks to all.

    #include<iostream>
    #include<iomanip>
    #include<cstring>
    using namespace std;


    void getInput(char names[][15],int number);//function...
  7. Replies
    17
    Views
    2,525

    if i change it to std::string i get the error...

    if i change it to std::string i get the error "expression must be a modifiable value" in the bubblesort on all 3 lines


    #include<iostream>
    #include<iomanip>
    #include<cstring>
    using namespace...
  8. Replies
    17
    Views
    2,525

    i would use the string functions but i have to...

    i would use the string functions but i have to use a bubble sort to sort the names in alphabetical order
  9. Replies
    17
    Views
    2,525

    Keep getting "Expression must be a modifiable...

    Keep getting "Expression must be a modifiable value" in the bubble sort. Any suggestions?


    #include<iostream>#include<iomanip>
    using namespace std;


    void getInput(char names[][15],int...
  10. Replies
    17
    Views
    2,525

    Why would an assignment call for using a 2-d...

    Why would an assignment call for using a 2-d array for storing single names. Doesn't make sense to me. I guess I could read it in as a string and use strcpy () to copy it to a char array
  11. Replies
    17
    Views
    2,525

    The assignment called for storing the names in an...

    The assignment called for storing the names in an array of characters. I need to look up the syntax for getline() if that would be better than cin. I've just always used cin.
  12. Replies
    17
    Views
    2,525

    Thanks that worked like a champ. The problem im...

    Thanks that worked like a champ. The problem im having right now is when i try to call the functions. Not sure if im doing it right. I can find all kinds of things about calling string functions but...
  13. Replies
    17
    Views
    2,525

    two dimensional array problem

    Im sure this is an easy question to answer but i can seem to find it. Supposed to ask how many names to enter and then enter the names, first name only and store into a two dimensional array. cant...
  14. Replies
    8
    Views
    1,172

    OK I have the program working just fine, even...

    OK I have the program working just fine, even figured out how to call the bubble sort functin ( that took a while). What is the best way to test each input of the array individually to see if it's an...
  15. Replies
    8
    Views
    1,172

    Yes. It helps if you read the directions right....

    Yes. It helps if you read the directions right. Evidently I was supposed to ask the user how many numbers they want to enter. Definitely makes more sense to do it that way.
  16. Replies
    8
    Views
    1,172

    ok i got the function to work. still not sure why...

    ok i got the function to work. still not sure why if i only put in 10 numbers and hit enter it wont run the program. I have to enter 10 more number before it will sort them.
    ...
  17. Replies
    8
    Views
    1,172

    array problem

    Have two problems with this program:
    1. The user is not supposed to enter more than 20 numbers, but the program wont move on unless 20 numbers are enteres.

    2. How would i put the bubble sort part...
  18. Replies
    12
    Views
    1,442

    #include using namespace std; void...

    #include <iostream>
    using namespace std;
    void getnum1(double);
    void getnum2(double);


    double num1,num2;
    inline double add(double num1, double num2)
    {
    return num1+num2;
  19. Replies
    12
    Views
    1,442

    Im trying to figure out how the user can enter...

    Im trying to figure out how the user can enter 'x' to exit the program at anytime, not just the last question. Is there a way to do this for the whole program without an if statement on each...
  20. Replies
    12
    Views
    1,442

    i tried every do while i can think of. setting...

    i tried every do while i can think of. setting bool to true and false, setting while to equal and not equal to the bool value. Also tried putting while to not equal to +,-,*,and /. For some reason...
  21. Replies
    12
    Views
    1,442

    #include using namespace std; ...

    #include <iostream>
    using namespace std;




    int main()
    {
    cout<<"*************************************************************"<<endl;
    cout<<"* ...
  22. Replies
    12
    Views
    1,442

    Whats wrong with this code

    supposed to make this code and when you press "c" should clear the screen and run the program again and when you press "x" should exit. It works but if i press c or x it will still ask the 2nd...
  23. Replies
    12
    Views
    868

    Thanks a lot. I extended the number up to 500000...

    Thanks a lot. I extended the number up to 500000 and noticed that the float output changed. You are right. Thanks again
  24. Replies
    12
    Views
    868

    Wow. Maticus, Thanks a lot. A little new at this....

    Wow. Maticus, Thanks a lot. A little new at this. I think i got it to run. One question would you think that returning a double and a float in this instance would return the same numbers? All 4 of my...
  25. Replies
    12
    Views
    868

    No problem. trying to add 1/1+1/2....1/5 a nd...

    No problem. trying to add 1/1+1/2....1/5 a nd 1/5+1/4.....1/1. Using one loop. Print out each result in a float and a double. I can get it to run just fine with 2 loops. Im trying get it to run with...
Results 1 to 25 of 45
Page 1 of 2 1 2