Forum: C++ Sep 6th, 2007 |
| Replies: 10 Views: 1,517 You're not solving anything by asking someone else do to it. And you're not learning anything either. _And_ you're spamming. |
Forum: C++ Sep 6th, 2007 |
| Replies: 38 Views: 3,069 toppings[z] = a[z] ;
If a is declared as a plain int, why are you subscripting it like an array of int? I think you should make the whole thing an array and that'll fix your problem.
void... |
Forum: C++ Sep 5th, 2007 |
| Replies: 33 Views: 3,992 I can't, but my teachers like to say that if you don't do something right the first time, you end up doing it again and again to fix the problems. It seems to me that using an array is bad because... |
Forum: C++ Aug 22nd, 2007 |
| Replies: 6 Views: 2,940 There might be a way in the STL to do it, but I don't know. I'd write a search function that finds every occurrence of "is" and then checks to see if the first and last letters are on a word... |
Forum: C++ Aug 13th, 2007 |
| Replies: 17 Views: 1,594 If you open a file for reading, C++ assumes the file exists. If you open it for writing, the file is created if it doesn't exist. If your open mode contains ios::out or ios::app then it's opened for... |
Forum: C++ Aug 1st, 2007 |
| Replies: 18 Views: 9,428 Why? The only thing I can think of is that you want a copy of the array instead of something that changes the array owned by the testCase class. If that's the case, you should still return the... |
Forum: C++ Jul 18th, 2007 |
| Replies: 3 Views: 1,687 I think Ancient Dragon was trying to say that he won't do everything for you because it's your homework and not his. If you do some of it yourself then I think the guys here will be more willing to... |
Forum: C++ Jul 18th, 2007 |
| Replies: 7 Views: 1,162 Yeah something like that. Try adding cin.ignore like this.
cin >> choice;
cin.ignore( 80, '\n' ); |
Forum: C++ Jul 16th, 2007 |
| Replies: 1 Views: 552 You can find out where the exe is with command line arguments.
#include <iostream>
using namespace std;
int main( int argc, char *argv[] ) {
cout<< argv[0] <<endl;
return 0;
} |
Forum: C++ Jun 27th, 2007 |
| Replies: 9 Views: 1,273 I was playing with a bunch of new things today and came up with this. Did I do anything wrong?
/*
binary class manipulator
Print values or strings as binary
by Kimberly Hamrick
*/... |