okay here is my problem now
if the input is
penny
henry
george
sammy
vanne
then the output is
Type: Posts; User: radiantarchon28
okay here is my problem now
if the input is
penny
henry
george
sammy
vanne
then the output is
ok thnx
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>
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; ...
i know how to do a bubble sort with an integer array
yay it worked. but i still need to kno how to sort an array by the first letter without the standard template library
i need to do it without stl
oh and the following code is giving me this error
while (myfil)
{
myfil >> str;
myfile <<str << endl;
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...
thnx. i think i was thinking too hard
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...
well at least its going to run quite a few times. which is what i want
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...
here is my code
#include <iostream>
#include <stdlib.h>
using namespace std; // using standard namespace
int main ()
{