Forum: C++ Dec 9th, 2004 |
| Replies: 6 Views: 2,783 Another chunk of code based off some help I was given:
#include <algorithm>
#include <iostream>
#include <string>
#include <fstream>
#include <vector>
#include <string>
using namespace std; |
Forum: C++ Dec 9th, 2004 |
| Replies: 6 Views: 2,783 Yeah, we have to use vectors - that's about the only certain bit of info we were given.
This is what I have now, and it looks promising (if not lenghty...)
for (z == size() );
{
int y =... |
Forum: C++ Dec 9th, 2004 |
| Replies: 6 Views: 2,783 Will this work to begin sorting in descending order by vector?
if (int y = 0; int z = 1; O[y] > O[z]; y++; z++;)
{
return 1;
}
else if (O[y] < O[z];)
{ |
Forum: C++ Dec 8th, 2004 |
| Replies: 6 Views: 2,783 Yeah, it's your typical homework help topic, but the problem is this is stuff we NEVER COVERED IN CLASS and it was NOT IN OUR BOOK, even our TA can't figure out why our professor assigned this to our... |