Forum: C++ Mar 21st, 2008 |
| Replies: 30 Views: 1,591 Either you didn't know that you should use braces, or you forgot.
for (int i=0;i<rollsize;i++)
{
switch (rolls[i])
{ // Forgot this
case 3:allresults[0] = allresults [0]+1;... |
Forum: C++ Feb 18th, 2008 |
| Replies: 2 Views: 1,858 time.h (http://www.cplusplus.com/reference/clibrary/ctime/) |
Forum: C++ Feb 8th, 2008 |
| Replies: 5 Views: 867 make the following changes to the set function.
void LList::set(int c, int val)
{
int i = size-1;
current = head;
while ( current != NULL )
{
if(i==c) |
Forum: C++ Jan 26th, 2008 |
| Replies: 20 Views: 2,507 No he has not missed the point. You have. Arguments can be used to pass things both in and out. Passing by reference can be used to get things out. It is also memory efficient because another copy of... |
Forum: C++ Jan 17th, 2008 |
| Replies: 21 Views: 4,025 Didn't your professor or anybody else at least tell you about this awfully fun site called http://www.google.com/ where you can type A-Star Algorithm... |
Forum: DaniWeb Community Feedback Jan 6th, 2008 |
| Replies: 3 Views: 1,267 1. post more.
2. get reputation more.
3. live longer. |
Forum: C++ Jan 5th, 2008 |
| Replies: 4 Views: 1,452 Documentation is not written by the developers for fun you know. Unless you are using fairly well known, well established APIs like the Windows API, the chances that someone who has used the library... |
Forum: C++ Dec 24th, 2007 |
| Replies: 1 Views: 603 If you have no previous knowledge of C++ the best thing will be to start by learning C++ (http://www.cprogramming.com/tutorial/lesson1.html). The link has information about editors and compilers... |
Forum: C++ Dec 24th, 2007 |
| Replies: 3 Views: 876 Well, you could do that programmatically, but you will need administrative priviledges for that. Wouldn't it be easier to let the user unblock the application by his own accord? After all it is his... |
Forum: C++ Dec 17th, 2007 |
| Replies: 11 Views: 3,622 Something like this will be easy. There are more compilicated methods if you want to break Japanese or Chinese words. Also you can use a callback function to count the words on the fly, but I think... |
Forum: Java Dec 15th, 2007 |
| Replies: 4 Views: 650 I have forgotten all my Java, so the code may give you compile errors and you will have to fix them on your own. However the algorithm will be the same
Try a loop like this.
int x,y; \* Make... |
Forum: C++ Dec 14th, 2007 |
| Replies: 1 Views: 6,295 C++ does not give you a method out of the box for multithreading like Java does.
To use multithreading, you will have to use the thread libraries offered by the operating system. For win32 you will... |
Forum: C++ Sep 20th, 2007 |
| Replies: 3 Views: 2,451 The usual reason is that you are not including the library that provides the implementation of pthread_create(). Check the documentation for pthread_create()and find out the required library. Then... |
Forum: DaniWeb Community Feedback Sep 9th, 2007 |
| Replies: 2 Views: 1,176 May be nothing, but this is what I see when I open the top link of this (http://www.google.co.jp/search?hl=en&q=N%28ext%29+LIST+C%2B%2B&btnG=Search)google search result in Firefox 2.0.0.6 on Windows... |
Forum: DaniWeb Community Feedback Aug 22nd, 2007 |
| Replies: 4 Views: 1,668 User notes are administrative notes about a particular user that can be updated and read by any administrative staff member. These maybe helpful to the same or another administrative staff member... |
Forum: C++ Jul 24th, 2007 |
| Replies: 1 Views: 3,877 Get the return value of GetPixel and RGB functions to seperate variables. See if the values are infact what you expect, rather than just comparing them.
Also read the remarks section of the... |
Forum: Geeks' Lounge Jul 4th, 2007 |
| Replies: 222 Views: 22,185 Densha otoko (http://en.wikipedia.org/wiki/Densha_Otoko) remake? I guess that was the inspiration behind your nickname (Orewa Cho Otoko Da? ) |
Forum: Geeks' Lounge Jun 16th, 2007 |
| Replies: 165 Views: 12,173 What happended to
1. Test that you are not reproductively challanged
2. If 1 is false, say bye bye to your fatherhood dream
3. Get a Girlfriend
4. Test that she is not reproductively challanged... |
Forum: DaniWeb Community Feedback Jun 14th, 2007 |
| Replies: 121 Views: 13,622 Yeah. Post in a geeks lounge thread, and say I agree. That will get you all the reputation you need. |
Forum: DaniWeb Community Feedback Jun 12th, 2007 |
| Replies: 16 Views: 2,426 Must be talking about the Internationally Reputed Criminals. Yeah nobody likes them. |
Forum: Geeks' Lounge Jun 5th, 2007 |
| Replies: 112 Views: 8,604 I bet it has something to do with their uniforms. A girl who doesn't look good in a nurse's uniform is beyond help. |
Forum: C++ May 30th, 2007 |
| Replies: 4 Views: 865 First debug it part by part and localize the error. Without knowing what is expected for the output, we are not in the position to debug all that long code. So you will be better off doing it... |
Forum: DaniWeb Community Feedback May 30th, 2007 |
| Replies: 123 Views: 14,054 Who says they don't count for anything? The people who helped them don't care about the color of the dot. They will care about the gratitude of the OP, and the positive comments they leave. If I... |
Forum: Geeks' Lounge May 26th, 2007 |
| Replies: 16 Views: 2,334 Unless you want boiled meat balls for dinner I suppose. |
Forum: C++ May 20th, 2007 |
| Replies: 4 Views: 4,224 For god's sake people. Let's stop joking and wait till the OP posts his code? This is not the geek's lounge for crying out loud. |
Forum: DaniWeb Community Feedback May 20th, 2007 |
| Replies: 121 Views: 13,622 Laughing out loud. Looking at the latest negative reputation I receieved for the above post, I think someone (I am not naming names) who takes the geeks lounge rep very seriously, as that is the only... |
Forum: DaniWeb Community Feedback May 17th, 2007 |
| Replies: 121 Views: 13,622 Who cares about geek lounge reputation anyway? It is the reputation points and comments of Narue (has never given me anything), Salem and the rest of the regulars, that I get in the C/C++ forums that... |
Forum: DaniWeb Community Feedback May 14th, 2007 |
| Replies: 13 Views: 2,520 Duh. Here is an attachment from google groups. |
Forum: DaniWeb Community Feedback May 14th, 2007 |
| Replies: 22 Views: 3,313 You obviously don't use MSN Messenger ;)
I can even see the rose petals in (F). |
Forum: DaniWeb Community Feedback May 6th, 2007 |
| Replies: 34 Views: 4,340 As for the idea, I don't have any problem with it. But it can be subjective, like increasing or decreasing the font face or color.
As for the colors, it would be good if the colors were different... |
Forum: Geeks' Lounge May 5th, 2007 |
| Replies: 9 Views: 1,660 I was just having a look at the BBC new headlines today morning, when the talk about Yahoo and Microsoft potentially pairing up caught my eye. Obviously this was a step taken to curb the rise of... |
Forum: DaniWeb Community Feedback May 5th, 2007 |
| Replies: 40 Views: 5,012 Are you saying I am not productive enough? |
Forum: DaniWeb Community Feedback May 5th, 2007 |
| Replies: 77 Views: 8,529 |
Forum: C Mar 25th, 2007 |
| Replies: 2 Views: 6,105 argv[ 0] is the program name. You can see the contents by using this line
printf( "%s", argv[ 0 ] );
To get the first argument, and convert it to an integer, try this code.
#include... |
Forum: C Mar 15th, 2007 |
| Replies: 8 Views: 3,885 What is wingoze? Whatever it is, it may be an Operating system, and there should be a socket API for it. Look that up. |
Forum: Posting Games Feb 28th, 2007 |
| Replies: 202 Views: 23,537 This is easy.
The letter E. |
Forum: C++ Dec 20th, 2006 |
| Replies: 5 Views: 2,701 Try the built in _CRTDebug (http://msdn2.microsoft.com/en-us/library/1666sb98%28VS.80%29.aspx)Libraries of Visual C++. |
Forum: Geeks' Lounge Nov 27th, 2006 |
| Replies: 50 Views: 7,150 Yeah, Humourless ...... :cheesy: . Didnt even know that Wombats were such cool species until DMR came along. Now I wanna be one in the next life.
They don't get eaten by others do they? :eek: Cos... |
Forum: Geeks' Lounge Nov 26th, 2006 |
| Replies: 37 Views: 5,979 1. pick up the book (of course)
2. Read the preface, introduction, Chapter 1
3. Fall asleep
4. Repeat 1 -3 infinitely, occationally wandering to Chapter 2 and maybe 3. |
Forum: C Nov 12th, 2006 |
| Replies: 4 Views: 2,495 Why are you using the strcpy function? These are C++ strings. Use the = operator.
thisRecord.fieldName =next |