2,839 Posted Topics
Re: We don't get gifts with Christmas. We celebrate the original holiday of [URL="http://en.wikipedia.org/wiki/Sinterklaas"]Sinterklaas [/URL](yes, Santa-Claus is the lame rip-off :) ) The biggest advantage is that I get gifts on the 5th of December [i]and[/i] two days of with Christmas! But on topic: I'm hoping for a nice bottle of … | |
Re: [QUOTE=scru;698014]You mean like someone who isn't monogamous, unbeknown to his sex partner?[/QUOTE] Nah, I think he meant MP3-player :) | |
Re: I bought a new machine a month ago because my 1800 celeron deserved his retirement. So I was thinking: "If I'm going to buy something, I better buy something good" So I'm now the proud owner of a quad-core with 4 gb ram etc etc... That was where the trouble … | |
Re: And if you want to build your own: [URL="http://eternallyconfuzzled.com/tuts/datastructures/jsw_tut_rbtree.aspx"]eternallyconfuzzled[/URL] | |
Re: So why not take Vernon's advice? It sounds pretty good to me | |
Re: Sounds like a good idea. Give us some rules, make this thread a sticky and let's go :) | |
Re: [QUOTE=naina_gill;590371]in fact i teach some languages. [/QUOTE] Do you teach in l33t-speak ? :icon_wink: l33t is against the [URL="http://www.daniweb.com/forums/faq.php?faq=daniweb_policies"]forum rules[/URL]. [QUOTE=naina_gill;590371]who really wanna guide..instead of pulling my leg[/quote] Ancient Dragon wasn't pulling your leg, he gave the best advice he could give you, because you didn't tell us anything about … | |
Re: In addition to the things already said, Daniweb isn't really known for it's blogging possibilities. I visit sites like reddit and digg etc frequently, but Daniweb's articles are seldom featured on these kind of sites, so the average blog reader (someone like me) doesn't even know that Daniweb-blogs exist. So … | |
Re: The conf file is just a textfile, so you can use standard c++ file-acces: [code=cplusplus] #include <fstream> [....] std::ifstream in_file("/etc/resolv.conf"); if (!in_file.is_open()) std::cout << "error opening file"; else // do stuff [/code] | |
Re: [QUOTE=M^2;747848]heloo can anyone plz tell me how use functions like power and setw.... [/QUOTE] Probably. What did you try? With what do you have problems? | |
Re: And show some code. Although we have many superpowers here on daniweb; reading minds is not one of them. | |
Re: [QUOTE=Narue;745450] take [ICODE]int r = rand() % N;[/ICODE] and turn it into [ICODE]int r = rand() % 4;[/ICODE] [/QUOTE] [QUOTE=riahc3;745476]So what: N is now 4? But because you say so? And why 4/n?[/quote] You asked for 0-3 right? How many numbers are that? Holy ****! It's four! [QUOTE=riahc3;745476] If there … | |
Re: [QUOTE=Fox Hound;744654] i want to make a 3rd person to first person shooter, kinda like Metal Gear Solid; it will have online capabilities but also a story mode. So what i need is: 1 Good/decent programmer that either knows C++/ C# if experienced in the Irrlicht Engine/ Irr-EDIT that's a … | |
Re: Completely off-topic, but Dave: I really think that Sarah won't become Obama's Vice president, so perhaps a change of avatar might be in order ;) | |
Re: Perhaps. You could also add breakpoints in you program to see exactly where (and why) it crashes. | |
Re: Last week Daniweb was updated with a few new features (like the new look). All the lounges (except the geek's) were merged into the [URL="http://www.daniweb.com/forums/forum5.html"]IT professionals lounge[/URL] [QUOTE=The Dude;746149]I see all the bases here.......[/QUOTE] Clear your cache | |
Re: On the subject of code-snippets: I would really like a 'preview' button with them just as normal posts have. It's not a big deal, but I would be very grateful ;) [edit] Also: Why can't we attach pics to snippets? If I'm posting a visualc++ snippet for example, it would … | |
Re: Sounds like the lyrics from a 90's rapsong to me. [quote=mc hammer] You can get it icq [/quote] | |
This site may come in very handy when dealing with lazy newbies: [URL="http://letmegooglethatforyou.com/"]http://letmegooglethatforyou.com/[/URL] Example: [quote=noob] what is search-algorithm ?!!!111 lolzwtf fbi [/quote] Click [URL="http://letmegooglethatforyou.com/?q=search+algorithm"]this [/URL]link and see | |
Re: [QUOTE=jbennet;745139]Please dont use .... all-lowecase.....[/QUOTE] Hmm... I remember someone else who did this for his first 10.000 or so posts .... ;) | |
Re: [QUOTE=jbennet;744232]Wht is thanksgiving?[/QUOTE] [URL="http://lmgtfy.com/?q=thanksgiving"]Click[/URL] What the hell is wht? | |
Re: You're using istringstream without including <sstream> Also 'debris' is undeclared. You're reading 5 or 6 times from your file per loop, are you sure you want to do that.... | |
Re: I have a bachelor in Embedded systems engineering. I don't know anyone from my class that had to start with a helpdesk, but the situation might be different here in the Netherlands. The start salary here is between 1800 euro (1500 pound/2300 usd) and 2100 euro (1750 pound/2700 usd), but … | |
Re: You can start a new thread everytime someone doesn't give you the answer you like, but you could also try solving some of the errors yourself. I bet you didn't change anything I suggested in the "ItemType.h" file right? In your [URL="http://www.daniweb.com/forums/post744130-35.html"]other thread[/URL] I also mentioned that you had missing … | |
Re: [QUOTE=ALAZHARY;745035]thank you minas1, but I think you need to read carefully what is the problem?[/QUOTE] Actually: YOU need to read the replies carefully. MattEvans already told you what the problem is: [QUOTE=MattEvans;744286]The behaviour when dereferencing an invalid pointer is undefined. [/QUOTE] So just use the code posted by him and … | |
Re: [QUOTE=Ezzaral;744520]I think this poster is just starting threads to stamp their sig links.[/QUOTE] I agree, I flagged his posts so it's up to the mods. | |
Re: 2 things. Change : [icode]namespace std;[/icode] to [icode]using namespace std;[/icode]. Your code shouldn't compile without changing it. then change: [code=cplusplus] int Meters; int Yards;[/code] to: [code=cplusplus] double Meters; double Yards; [/code] Int can only be integer values So: 1, 4 , 300, 5632 etc etc. But you need some digits … | |
Re: [QUOTE=sisse56;744219]Help how can you sort[/QUOTE] [URL="http://www.eternallyconfuzzled.com/tuts/algorithms/jsw_tut_sorting.aspx"]The art of sorting[/URL] | |
Re: There seem to be a few bugs in the class: try comparing this: [code=cplusplus] String a = "abcdef"; a = a + "ghij"; cout << a; [/code] with this: [code=cplusplus] String a = "abcdef"; a+="ghij"; cout << a; [/code] But the most important questions is: why? There's a perfectly fine … | |
Re: There are so many errors, I don't even know where to begin... Let's take your headerfile for example: [code] struct NodeType { ItemType info; [COLOR="Red"] //class Itemtype not defined yet.[/COLOR] NodeType* next; }; class ItemType { public: Stack();[COLOR="Red"] //What??! Are you trying to call the constructor from here?[/COLOR] bool IsEmpty() … | |
Re: This line is causing the troubles: [icode]incode.open[COLOR="Red"](" C:\[/COLOR]\Dev-Cpp\\inventory.txt");[/icode] Do you see the space between the ' " ' and ' C '? Delete that one. Of course the file should still exist at the given locating :) The proper way to check if a file is open if with the … | |
Re: Read Vernon's previous post instead of begging for help: [QUOTE=Se7Olutionyg;743256]Help me please[/QUOTE] That's just pathetic. Did you change the things Vernon mentioned? If no: do it and do it now. if yes: What are your new problems and show some code. Also learn how to use [URL="http://www.daniweb.com/forums/misc-explaincode.html"]code-tags[/URL] correctly | |
Re: This: [icode]for(k=0;k<=;k++;)[/icode] Should be this: [icode]for(k=0;k<=;k++)[/icode] ( no semicolon after k++) | |
Re: How about the very first thread in this forum: [URL="http://www.daniweb.com/forums/thread50370.html"]Starting C[/URL] ? | |
Re: [QUOTE=maxicube;741429] i fond the key which might be useful. (how would i open it? [/QUOTE] How about using [URL="http://letmegooglethatforyou.com/?q=get+registry+keys+c%2B%2B"]this [/URL]incredible site ? :) | |
Re: Are you deleting the previous transactionlog.txt somewhere? Else rename will fail because the file already exists. You should also avoid using eof(). If you change this: [code=cplusplus] while(!myfile.eof()) { getline(myfile,temp); cout << temp; tempfile << temp << endl; } [/code] to this: [code=cplusplus] while(getline(myfile,temp)) { cout << temp; tempfile << … | |
Re: When posting code always use [URL="http://www.daniweb.com/forums/misc-explaincode.html"]code-tags[/URL]! You have two functions that should return a value, but don't: [ICODE]int CelsiustoFahrenheit()[/ICODE] and [ICODE]int FahrenheittoCelsius()[/ICODE] After calculating the values you'll have to return them from the function, because it makes no sense in calculating them if you're not going to use them right? … | |
Re: it isn't "end1" but "endl" (with an "el" not a "one") :) The endl is short for "endline" and makes the console jump to a new line. [icode]cout << "Hello world.\n"; [/icode] would have the same effect. For future posts: if you post code here please use [URL="http://www.daniweb.com/forums/announcement8-3.html"]code-tags[/URL] | |
Re: I'm not sure if I understand the question correctly, but if you want a bunch of numbers which you can choose from, you could use vectors. Example: [code=cplusplus] vector<int> diameters; /* load a few bogus values */ diameters.push_back(1); diameters.push_back(5); diameters.push_back(7); /*display available numbers */ cout << "numbers available: "; for … | |
Re: [quote] Oh also, how do you specify what kind of syntax you are using with the CODE tags?[/QUOTE] for c: [noparse] [CODE=C] /*code goes here */ [/CODE] [/noparse] also explained [URL="http://www.daniweb.com/forums/announcement8-3.html"]here[/URL] | |
Re: [QUOTE=kingy55;740385], do I get extra rep points lol[/QUOTE] You want the green or the red kind? ;) | |
Re: [ICODE]gotoxy()[/ICODE] is a function developed by Borland for Turbo C. It was never standard C to begin with, so to get your program back to standards and up to date, try using: [URL="http://msdn2.microsoft.com/en-us/library/ms686025.aspx"]SetConsoleCursorPosition()[/URL] Here's another usefull [URL="http://msdn2.microsoft.com/en-us/library/ms682073.aspx"]link[/URL] other things that are non-standard in your program are: [ICODE]#include <conio.h>[/ICODE] Just delete … | |
Re: I'm not sure that that's even possible with the standard MFC-listctrl. Have a look at this (free) [URL="http://www.codeproject.com/KB/list/Extended_List_Control.aspx"]extended one[/URL] | |
Re: [URL="http://images.google.nl/images?hl=nl&q=Gantt%20Chart&um=1&ie=UTF-8&sa=N&tab=wi"]3 seconds of google[/URL] | |
Re: What you're programming is C++, not C. So you should use a C++ compiler like G++. What OS are you using? | |
Re: I'm not sure, and I haven't done this for a few years, but you could try a [icode]this->refresh()[/icode] when you're done resizing | |
Re: [URL="http://www.eternallyconfuzzled.com/tuts/algorithms/jsw_tut_sorting.aspx"]The art of Sorting[/URL] | |
Re: [QUOTE=mabpest;737298]can anyone review this flowchart and tell me if it will count print the numbers from 1 to 10?[/QUOTE] No it won't. If you would just draw out a table on paper with "count", "factoral" and the product of both, you could have easily found out that it counts from … |
The End.