Forum: Geeks' Lounge Sep 9th, 2007 |
| Replies: 17 Views: 3,704 I don't think using all of the tools available means you're weak. Programming is hard enough as it is, so why not get all the help you can? :) |
Forum: C++ Sep 6th, 2007 |
| Replies: 10 Views: 1,508 You're not solving anything by asking someone else do to it. And you're not learning anything either. _And_ you're spamming. |
Forum: DaniWeb Community Feedback Sep 6th, 2007 |
| Replies: 26 Views: 3,332 I like the real time aspect of who's online. The list of recent posts in my subscribed forums doesn't show me who's replying or creating a thread right now, it only shows me who's already posted.
... |
Forum: C++ Sep 6th, 2007 |
| Replies: 38 Views: 3,054 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,970 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 29th, 2007 |
| Replies: 17 Views: 2,255 system is in stdlib.h, not stdio.h. It's not a good idea either because now you depend on an outside program that might be malicious. It's a big security no-no because you created a hole that hackers... |
Forum: C++ Aug 22nd, 2007 |
| Replies: 6 Views: 2,922 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 21st, 2007 |
| Replies: 11 Views: 1,770 No, it doesn't. But you _do_ lose the only reference to the space you had, and that's called a memory leak because now it's allocated and won't be freed until the program ends. If your OS doesn't... |
Forum: C++ Aug 13th, 2007 |
| Replies: 17 Views: 1,586 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 2nd, 2007 |
| Replies: 11 Views: 14,193 I have to agree because you proved me wrong. You can't change things like the click event for the button but you can hook events further down the line and do stuff. |
Forum: C Aug 2nd, 2007 |
| Replies: 8 Views: 17,661 You need to include stdlib.h. The error cryptically tells you that malloc wasn't declared and the compiler just assumes it's a function that returns int and casting from int to char* isn't friendly. |
Forum: C++ Aug 1st, 2007 |
| Replies: 18 Views: 9,362 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 27th, 2007 |
| Replies: 1 Views: 614 Use the Contains method of the string class to find substrings.
string s = "Hello World!";
if ( s.Contains( "Hello" ) ) {
Console.WriteLine( "Found \"Hello\" in the string" );
} |
Forum: C++ Jul 18th, 2007 |
| Replies: 3 Views: 1,672 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: Computer Science Jul 17th, 2007 |
| Replies: 8 Views: 7,869 For a queue just think of stuff where something goes in one end and out the other in order. For a stack just think of stuff where something goes in one end and out the same end in order. |
Forum: C++ Jul 16th, 2007 |
| Replies: 1 Views: 551 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,267 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
*/... |