Search:

Type: Posts; User: radiantarchon28

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    1,340

    array sort output problem

    okay here is my problem now

    if the input is

    penny
    henry
    george
    sammy
    vanne
    then the output is
  2. Replies
    14
    Views
    3,081

    ok thnx

    ok thnx
  3. Replies
    14
    Views
    3,081

    how do i sort by the first letter. oh and here is...

    how do i sort by the first letter. oh and here is the full program


    //this program
    //
    //program4.cpp
    //my name. (im not going to tell you this)

    #include <fstream>
    #include <iostream>
  4. Replies
    14
    Views
    3,081

    so im guessing that the if (stri[count]

    so im guessing that the
    if (stri[count] < stri[count+1])
    needs to be changed but here is what i came up with



    bool swap;
    string temp;
    int bottom = 99; ...
  5. Replies
    14
    Views
    3,081

    i know how to do a bubble sort with an integer...

    i know how to do a bubble sort with an integer array
  6. Replies
    14
    Views
    3,081

    yay it worked. but i still need to kno how to...

    yay it worked. but i still need to kno how to sort an array by the first letter without the standard template library
  7. Replies
    14
    Views
    3,081

    i need to do it without stl oh and the...

    i need to do it without stl

    oh and the following code is giving me this error



    while (myfil)
    {
    myfil >> str;
    myfile <<str << endl;
  8. Replies
    14
    Views
    3,081

    sorting a string array

    okay i need to sort a string array by the first letter of the strings.
    i read the input from a file and then into a different file

    //this program
    //
    //program4.cpp
    //my name. (im not going to...
  9. thnx. i think i was thinking too hard

    thnx. i think i was thinking too hard
  10. problem with if statements (leap year)

    how would you write an if statement to determine whether or not it is a leap year. A year is a leap year if it is evenly divisible by four hundred or if it is evenly divisible by four, but not by...
  11. Replies
    11
    Views
    5,728

    well at least its going to run quite a few times....

    well at least its going to run quite a few times. which is what i want
  12. Replies
    11
    Views
    5,728

    to daved. im gonna try and use casting to...

    to daved. im gonna try and use casting

    to dwks.
    1. its part of the assignment to use a char array
    2. thanks for the tip on ||
    3. i meant < 13
    4. its an infinite loop. until the user chooses...
  13. Replies
    11
    Views
    5,728

    problems converting char to int

    here is my code


    #include <iostream>
    #include <stdlib.h>

    using namespace std; // using standard namespace

    int main ()
    {
Results 1 to 13 of 15