2,839 Posted Topics
Re: [CODE] bool next=getdata(score,weight); [COLOR=red]{[/COLOR] if (next != false) [/CODE] Remove the bracket marked in red. | |
Re: There's probably something wrong with an array or something like that, please post your code. | |
Re: [QUOTE] trying to have a dynamicly re-sized array [/QUOTE] That's not possible, just make sure it's big enough | |
Re: [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 … | |
Re: [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 … | |
Re: [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 … | |
Re: So are you two going to fight in every thread in which you have both posted:eek: And offcourse I'm just joking... Niek ![]() | |
Re: 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 | |
Re: 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... :) | |
Re: [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" … | |
Re: 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 | |
Re: I'm from the Netherlands, xst generation dutchman. And yes, I put mayonaise on everything :) Niek | |
Re: 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 … | |
Re: 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? | |
Re: 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 … | |
Re: 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... | |
Re: 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 … | |
Re: 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] | |
Re: 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. | |
Re: 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 … | |
Re: 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 … ![]() | |
Re: 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 … | |
Re: [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 … | |
Re: 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 | |
Re: But what's wrong with the *revised* code from Ancient Dragon? Should work pretty good? regards Niek | |
Re: [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. | |
Re: [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 … | |
Re: 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. | |
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 … | |
Re: user enters a number1 user enters a second number2 if number2 > number1 then number1 = number2 print: the biggest number is : number1 regards Niek | |
Re: 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. | |
Re: 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 | |
Re: [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. … | |
Re: [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... … | |
Re: [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 … | |
Re: [quote=boujibabe] [code] while ((fgets( line, BUFSIZE, file )!=0)) [/code] [/quote] Please note that " 0 " is not the same as " NULL " | |
Re: 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] … | |
Re: Could you post the switch statement as code? regards Niek | |
Re: [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 | |
Re: [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: … | |
Re: 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 … | |
Re: 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 | |
Re: declare students[20] declare counter while counter < 20 read studentname and store in array counter++ | |
Re: [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] | |
Re: Try running your computer in 'safe mode' and then run disk clean up | |
Re: Try: [code] GetDlgItem[COLOR=#66cc66]([/COLOR]IDC_EDITBOX[COLOR=#66cc66])[/COLOR]->SetFocus(); [/code] regards Niek | |
Re: 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? ;) | |
Re: [QUOTE] it goes straight to error message instead of compiling [/QUOTE] what compiler are you using, because on VS2005 pro, your program compiles fine.. | |
Re: [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]) { … | |
Re: 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 |
The End.