2,839 Posted Topics

Member Avatar for elcrapo

[CODE] bool next=getdata(score,weight); [COLOR=red]{[/COLOR] if (next != false) [/CODE] Remove the bracket marked in red.

Member Avatar for John A
0
146
Member Avatar for FireSBurnsmuP

There's probably something wrong with an array or something like that, please post your code.

Member Avatar for FireSBurnsmuP
0
111
Member Avatar for toomuchfreetime

[QUOTE] trying to have a dynamicly re-sized array [/QUOTE] That's not possible, just make sure it's big enough

Member Avatar for Narue
0
150
Member Avatar for purple rainx

[quote=jwenting] We've never done presents with Christmas [/quote] No, but I bet you did (in the past) give presents with [URL="http://en.wikipedia.org/wiki/Sinterklaas"]'sinterklaas'[/URL]. It's a dutch holiday on the 5th of december, very similair to what Christmas is in America (Sinterklaas - SantaClaus get it?). [quote=sharky_machine] the corrupt, Westernized money-making day that …

Member Avatar for jwenting
0
127
Member Avatar for blud

[QUOTE=WaltP] Wouldn't that depend on what country they were from? [/QUOTE] Yes is does.. You probably won't believe me, but I know several people who's lastname is Fukking... One of them is called Dick Fukking... But he was named that in the time when the dutch didn't know that there …

Member Avatar for lol_hacker101
0
147
Member Avatar for DMR

[quote=DMR]our member niek_e suggested that someone should start a poll to find out what the DaniWeb community really thinks about [URL="http://www.wombat.echidna.id.au/wombat1.htm"]Wombats[/URL][/quote] Haha, very predictable! I didn't start one myself because I allready knew it was a mather of time....:) What I especially like about wombat's is that the eat poll's …

Member Avatar for WaltP
0
604
Member Avatar for purple rainx

So are you two going to fight in every thread in which you have both posted:eek: And offcourse I'm just joking... Niek

Member Avatar for iamthwee
0
278
Member Avatar for duaban

Yup, they're linked to your username/password. That is why you can also use someone else's computer to log on to your MSN-account

Member Avatar for Nick Evan
0
82
Member Avatar for ramgates

Very simple, it's just like Narue said: [code]pow (number, power);[/code] so: 2^3 in C would be [inlinecode]pow(2, 3.0);[/inlinecode] don't forget to [inlinecode]#include <math.h>[/inlinecode] in your C file. [edit] [quote=ramgates] printf("Foo\n");[/quote]No, this site isn't a C compiler... :)

Member Avatar for Nick Evan
0
116
Member Avatar for itchap

[QUOTe=itchap]in.seekg(0,ios::beg); lines ++;[/quote] You should put this in a loop, now it will find 1 occurence and continue with the rest of your code. so something like: [code] While (not the end of the file) { look for searchstring lines++; if string is found { cout << "found at line" …

Member Avatar for itchap
0
199
Member Avatar for mattyd

I like binary numbers, but that wasn't an option... Maybe someone should start a poll to find out what people think about wombat's ;) Niek

Member Avatar for Narue
0
211
Member Avatar for purple rainx

I'm from the Netherlands, xst generation dutchman. And yes, I put mayonaise on everything :) Niek

Member Avatar for Infarction
0
319
Member Avatar for chubbywubba

Sorry, doesn't compile: [code]//Mutators void setActive (); // Gets console ready to draw minesweeper grid char draw[COLOR=red]()[/COLOR]; // Draws the grid for minesweeper[/code] [code] Room *** array; [/code] What are your trying to do here? Create a pointer-to-etc to a room called array? Or are you trying to make an …

Member Avatar for John A
0
151
Member Avatar for MattEvans

I listen to punk & metal, it helps me relax although that might sound strange... . [quote=Ancient Dragon] I suppose the music being written today is better than the music during the past 20 years.[/quote] hmm..Perhaps with bands like coldplay and muse or what are you reffering to?

Member Avatar for jbennet
1
170
Member Avatar for genusis

First of all: What Joe said. [QUOTE=genusis] well i need help with a battle system made with vb6. i have tried twice [/QUOTE] Are you asking for help with a new game, or do you have problems with existing code, because then you should post your code here so we …

Member Avatar for Nick Evan
0
91
Member Avatar for bala24

If you're just starting with .NET I recommend that you download VS2005.net express. It's the newest version of Visual Studio and it's free for download on the microsoftsite. Here's a [URL="http://www.c-sharpcorner.com/vs2005.asp"]link[/URL] with some tuts. (2005) and [URL="http://msdn.microsoft.com/msdnmag/issues/06/00/visual_studio_2005_guided_tour.pdf"]here's [/URL]the official tour...

Member Avatar for Ancient Dragon
0
127
Member Avatar for kobi

You could use sprintf() to make a string which contains your filename. Example: [code=c] char acFilename[5]; FILE* FFile; for (iCount = 1; iCount <= 300; iCount++) { sprintf(acFilename, "T%d", iCount); if (FFile = fopen(acFilename, r) != NULL) { // analyse your file here fclose(FFile); } }[/code] Didn't test it, but …

Member Avatar for ~s.o.s~
0
191
Member Avatar for hvalmighty

Please post some code to show what you've done so far. And you might 'wanna' read [URL="http://www.daniweb.com/techtalkforums/faq.php?faq=daniweb_policies"]this.[/URL]

Member Avatar for ~s.o.s~
0
139
Member Avatar for aileenveliz87

you might want to have a look in [URL="http://www.daniweb.com/techtalkforums/thread62507.html"]this [/URL]thread. It's a very similar problem to yours.

Member Avatar for Nick Evan
0
126
Member Avatar for limergal

Your declarations or allmost right. I changed main to int main() (that's the way it's allways suppose to be). I've also given each var a initial value. [code][COLOR=darkred]int[/COLOR] main() { int currentMembers[]={1,2,3},nMembers = 3, [COLOR=darkred]k = 0[/COLOR], memberID = 2; bool isAMember [COLOR=darkred]= FALSE;[/COLOR] [/code] I see you declare nMembers …

Member Avatar for Nick Evan
0
681
Member Avatar for Francis Waldron

I allready mentioned this in your other thread : [code] system("pause"); [COLOR=navy]} [/COLOR] return 0; [/code] This isn't in main() nor in another function. Put this before the closing brracket from main(){} [code] cout << " The quoent of two numbers is"<< q <<"\n"; [COLOR=darkred]//put it HERE and remove the …

Member Avatar for iamthwee
0
171
Member Avatar for noople

Hello, First thing: you never initialize i. Delare i as[INLINECODE] int i= 0;[/INLINECODE] [QUOTE] input file has numbers and words [/QUOTE] [CODE] if (fscanf(f, "%c%d", &w[i], &n[i])!= EOF) [/CODE] You're scanning for char's not words. You need a 2 dimensional array of chars if you want to store all the …

Member Avatar for noople
0
2K
Member Avatar for kabrina

[quote=kabrina] All messages sent on the site are unsolicited but that doesnt make them illegal. [/quote] It should. [quote=kabrina] I send messages to members of online communities it is not done through email just private messaging members of sites such as myspace. [/quote] Great! I have a band and we …

Member Avatar for jwenting
0
106
Member Avatar for gabriel_wadley

You could use ULONGLONG but that just shifting your problem to a later stage. The other option is to rewrite your function, there are plenty examples of Pascal-triangles here ons daniweb. regards Niek

Member Avatar for Nick Evan
0
84
Member Avatar for nirmala.s

But what's wrong with the *revised* code from Ancient Dragon? Should work pretty good? regards Niek

Member Avatar for John A
0
377
Member Avatar for ramzyel

[CODE] ISNUMPALINDROME (number); results = ISNUMPALINDROME; [/CODE] This should be written as: [INLINECODE]results = ISNUMPALINDROME (number);[/INLINECODE] If you search daniweb for Palindrome you should find plenty of examples.

Member Avatar for Nick Evan
0
149
Member Avatar for Francis Waldron

[quote] [COLOR=#0000ff][COLOR=#0000ff]int[/COLOR][COLOR=#000000] main()[/COLOR] [COLOR=red][[/COLOR] [/COLOR][/quote] [COLOR=#0000ff][COLOR=black]Typo, it should be a {[/COLOR] [quote] z = intSum(x,y) [/quote] [COLOR=black]You didn't declare x nor y, I think you want to send numX and numY. ( [inlinecode]intSum(numX, numY);[/inlinecode] )[/COLOR] [COLOR=#000000]Same with the other 3 functions.[/COLOR] [COLOR=#000000]You need to declare the functions before you use …

Member Avatar for WaltP
0
115
Member Avatar for nhm919

read [URL="http://www.daniweb.com/techtalkforums/announcement8-2.html"]this[/URL]. First show what you've got then ask for help. These are not the most difficult things to code, so give it a try first.

Member Avatar for nhm919
0
144
Member Avatar for Nick Evan

I found some old floppies with some of my early basic programs on them. I made them in vb3 (.bas .frm) but I'd like to open them in VB.NET is there a way to do this? I saved all my files in ASCII. p.s. please don't post [URL="http://www.daniweb.com/techtalkforums/www.advantageware.com/VBAD_free_tools.htm"]this[/URL] link, because …

Member Avatar for Nick Evan
0
245
Member Avatar for ivy_sls06

user enters a number1 user enters a second number2 if number2 > number1 then number1 = number2 print: the biggest number is : number1 regards Niek

Member Avatar for WaltP
0
88
Member Avatar for whitemoss

Is this a new question? [quote=whitemoss] void set_day(struct tm* tb) { iDay = tb->tm_mday; strftime(Day, sizeof(Day), "%a", tb); } [/quote] Well, there's a problem in here, but I can't tell what. Where is iDay declared? Please post your entire (or relevant) code.

Member Avatar for whitemoss
0
1K
Member Avatar for Cuki

What does the error-pop-up say? Have you tried scanning for virusses? I had the same problem and it was blaster(..) if I remember correctly. regards Niek

Member Avatar for Cuki
0
114
Member Avatar for Instability

[QUOTE=Instability] which I already had Windows XP Home installed. [/QUOTE] [QUOTE=Instability] because of a headware or software change [/QUOTE] So you installed windows on another PC? Then Windows will be looking for hardware from that PC, but since it is in your IBM it won't find it. That's the problem. …

Member Avatar for Chaky
0
118
Member Avatar for Ancient Dragon

[QUOTE] he Pilgrims were particularly thankful to Squanto, the [B]Indian[/B] who taught them how to catch eel, grow corn and serve as interpreter for them (Squanto had learned English on a previous trip to Europe). [B]Without Squanto's help the Pilgrims might not have survived[/B] in the new world. [/QUOTE] Aaahhww... …

Member Avatar for Ancient Dragon
0
250
Member Avatar for srinivasdama

[quote]without using /,*,%.operators..[/quote] So ' + and - ' are allowed? example: [code] # include<iostream> using std::cin; using std::cout; using std::endl; using std::fixed; int main() { int iInput= 0, iTemp, iCount = 0; cout << "enter a number to be devided by 3" << endl; cin >> iInput; for (iTemp …

Member Avatar for Rashakil Fol
0
98
Member Avatar for boujibabe

[quote=boujibabe] [code] while ((fgets( line, BUFSIZE, file )!=0)) [/code] [/quote] Please note that " 0 " is not the same as " NULL "

Member Avatar for boujibabe
0
333
Member Avatar for Gunner54

and first you have this: [code] void EnableHack(BYTE* AddrToChange, BYTE* To, DWORD len); { for(DWORD i = 0; i < len; i++) WriteMem((DWORD)AddrToChange+i, (DWORD)To+i, 1); } [/code] and now: [code] void EnableHack(BYTE* AddrToChange, BYTE* To, DWORD len); for(DWORD i = 0; i < len; i++) WriteMem((DWORD)AddrToChange+i, (DWORD)To+i, 1); } [/code] …

Member Avatar for WaltP
0
169
Member Avatar for johnpeter1989
Member Avatar for The Dude

[QUOTE=Anonymusius] You can to really take nothing with you, if your really cheap :P. [/QUOTE] Why is it always the dutch that come up with these suggestions. This isn't very good for our reputation.... Regards (groeten) Niek

Member Avatar for Nick Evan
0
84
Member Avatar for mattyd

[quote] I am pleasantly surprised by all the snow, Winter, and rain lovers here [/quote] Then I'll be the first to like the summer. I'm from holland and it rains 99% of the time. And when it doesn't rain: it snows... For the people that don't where to find Holland: …

Member Avatar for jwenting
0
120
Member Avatar for aznballerlee

Hello, The problem is in your for-loop in main(): [code] for (int a=1; a < rounds+1; a++) { cout << "Round " << a << endl; [COLOR=red] playOneRound (myRand(10));[/COLOR] cout << playOneRound(myRand(10)) << endl; } [/code] Your calling the playoneround function twice for each loop. Try to remove the line …

Member Avatar for ~s.o.s~
0
119
Member Avatar for jbennet

Send me a link and I'll see what I can do p.s. You could download VS2005 pro yourself from microsoft.com, it's a 90 day trail

Member Avatar for Ancient Dragon
0
103
Member Avatar for blancanyc69

declare students[20] declare counter while counter < 20 read studentname and store in array counter++

Member Avatar for Nick Evan
0
103
Member Avatar for steveneven

[B]Connection Speed:[/B] [I]384 kbyte/s[/I] [B]Cost Per Month:[/B] [I]30 euro[/I] [B]Country:[/B] [I]the Netherlands[/I] [B]Name Of ISP:[/B] [I]TELE2[/I]

Member Avatar for kosmoe
1
652
Member Avatar for HondaPH22
Member Avatar for atrusmre

Try: [code] GetDlgItem[COLOR=#66cc66]([/COLOR]IDC_EDITBOX[COLOR=#66cc66])[/COLOR]->SetFocus(); [/code] regards Niek

Member Avatar for atrusmre
0
136
Member Avatar for Roxsy3392

English This thread is a year old, why are you posting in it ? Dutch Dit onderwerp is een jaar oud, waarom reageer je hier op? ;)

Member Avatar for Nick Evan
0
328
Member Avatar for aismm

[QUOTE] it goes straight to error message instead of compiling [/QUOTE] what compiler are you using, because on VS2005 pro, your program compiles fine..

Member Avatar for WaltP
0
146
Member Avatar for paradoxxx

[quote] I did, and it crashed. I tried this: [/quote] That's strange because I tested dragon's code from the [URL="http://web.daniweb.com/techtalkforums/thread59870.html"]other [/URL]post and it works fine for me... As far as the switch-case you're right, it's to many lines. Instead of [code] for (int i=0; i<MAX_SIZE; i++) { switch (letters[i]) { …

Member Avatar for John A
0
236
Member Avatar for markbur

Besides, what fileformat are you playing? Because mp3 has doesn't have the quality of a CD or old-school-record. If you want the best quality sound, playing files with your computer isn't the solution gr Niek

Member Avatar for Chaky
0
87

The End.