3,892 Posted Topics
Re: Hey there nanodano, dont you think you are overlookign something. The syntax for templates is [INLINECODE] template < class T > [/INLINECODE] and not [INLINECODE] template < typename T >[/INLINECODE] Try to make the following change in your files and see if it works. | |
Re: @Justine I hope you realise that the game development field of Software development is very demanding. I don't want to seem pessimistic, but I am yet to see a professional game developer who didn't start coding at the age of 14-16. To put it in a mild way, the people … ![]() | |
Re: Post your errors and highlight the lines on which they occur...that way it would be easier for us to spot them... | |
Re: You must be sitting behind a firewall I suppose. THe same problem happens with me but on a different site. In that case I just turn off the firewall and post and it works out well. Or try changing the setting in your firewall for Daniweb and then see if … | |
Re: [quote=purple rainx;285480]We all know that there are cruel people in this world. Those that enjoy demeaning others for personal gratification. Others do this by constant argument and manipulation. I seriously wish to get to know "good people" on Dani Web. If I take a stand on something and you disagree … | |
Re: I like 0. Because being a pessimist it goes well with the pessimistic image. Zero is zero and nothing but 0. Well actually if you will notice that there is quite a bit of [URL="http://www.google.co.in/search?hl=en&q=who+invented+0&btnG=Search&meta="]history and controversy[/URL] associated with it. | |
Re: Hmm.. I am from India and interested in all the tech things.. . | |
Re: Enums are internally integers, they are normally used for the convinience of the programmer as well as for clean design. They help in avoiding magic numbers in your program ( integer literals in the program which are not self explanatory ). So if you do: [code=c] enum { ZERO, ONE, … | |
Re: Naa..this is not similar to rotation. Rotation is used for balancing the binary tree which becomes unbalanced after repeated deletions from the BST, and for the purpose of balancing we use AVL trees, Red Black tree and many others -- but I don't think you should complicate matters by taking … | |
Re: The only ones I know which provide good space, support for PHP and MySQL are : [url]http://www.122mb.com/[/url] [url]http://www.275mb.com/[/url] Hope they helped, bye. | |
Re: Hey there buddy, good to have you here. Maybe you should just get the other members of Daniweb involved in your chess maniacity. :D | |
Re: Hello friend, welcome to Daniweb. Looks like you are interested in all the J's -- Java, Jazz... :D | |
Re: Hey there Rob welcome to Daniweb. Microsoft Certification...hmmm hope you render help to some of the newbies out here who are looking for professional help :D | |
Re: [quote=sweety0;283823]hi veena thank u so much for the code . yar but the problem is i want for scintific calculator. aur is code mei bhi kuch error tha. tomoro i will tell u the error ok bye take care[/quote] You should keep in mind that this is an international forum … | |
Re: I dont think the OpenGL code depends on the compiler but on OS --- yes. If you need to run the same code on different OS's you can head over to NeHe where he has provided code snippets for different OS's and different compiler (OpenWatcom etc. ) IMHO, you are … | |
Re: Hmm...here is what I think you should do: 1. Always keep a guard condition while making header files which does away with the problem of recursive inclusion of headers. Something like: [code=cplusplus] #ifndef TGA_H_ #define TGA_H_ // your header file here #endif[/code] 2. Don't know why but your loop looks … | |
Re: OMG, 55 MB, thats too much for experimentation...;) But still will try when I get time and give you the feedback.. | |
Re: Hello. Err...I really don't get it, what exactly has changed. Does the new feature allow me to customize the way Daniweb looks in my browser ? What exactly is collapsable here ? Thank you. | |
Re: [URL="http://www.codecogs.com/reference/string.h/strstr.php?alias=strstr"]Here[/URL] you go. Next time just put the whole phrase in google and you would get results which would surprise you. (I mean you can easily get answers using Google) | |
Re: Here is a small example on how to do it, you can easily mould it to your needs: [code=cplusplus] #include <iostream> #include <cstring> int main() { char* digit[] = { "1", "2", "3", "4" } ; char* number[] = { "one", "two", "three", "four" } ; for( int i = … | |
Re: *sigh* I can only get to see it. | |
Re: If the code is small enough you can try to post it here and pointing out the line on which error occurs or post the sample function is code is too big. Also if you don't know, there is a datatype which is used in place of [INLINECODE]int[/INLINECODE] in the … | |
Re: Though it would have been simple if they had something like: [code=c] // more simple to understand and no need of keeping in mind the // ASCII equivalent of '0' temp[k++] = remain + '0' ;[/code] | |
Re: JRM your solution won't work, bubble sort uses two nested loops not one. And on top of that you cripple your method by using strncmp( ) instead of just strcmp( ). Why limit the comparision to 3 characters ? | |
Re: You will find everything here: [url]http://www.daniweb.com/techtalkforums/thread50370.html[/url] Just be patient, read the whole thread, visit OpenGL links, read the tutorials on how to setup OpenGL and you will be up in no time. | |
Re: Yes, atleast [URL="http://www.daniweb.com/tutorials/"]networking[/URL] tutorials have a place in Daniweb. If you have really good material for others then maybe you should talk with Miss Dani about this and after evaluating your matter would make a new catergory for you. | |
Re: [quote=jwenting;283913]But beware that you're trying to enter a marketplace that's not only extremely competitive (every kid seems to want to become a game programmer) but highly exhausting. People have (and do) died at their workstations, literally worked to death by impossible deadlines and 20+ hour workdays combined with employment systems … | |
Re: Be more specific. What kind of 3d stuff are you implying here. 3d modelling softwares like Max, Maya or simulations or 3D games ? IMO C++ is by far the best language you can have for such things, though others like Python ( [search]Blender Modelling tool[/search] )and Java are catching … | |
Re: Well i think an opensource software for your first attempt would really give your Software company a boost. ..and well also the type of publicity you use decides the future of your company. Good publicity = Great future | |
Re: I don't think you can do it without passing the size of the array to the function since once inside the function you can't use the sizeof operator on the passed arrray since it would only yield the size of pointer. Every sorting or searching routine out there requires you … | |
Re: Hey there buddy, welcome to Daniweb. Good to see that even you play good games like WOW and F.E.A.R. :D | |
Re: So where is the remaining code...? Post it to get more help. | |
Re: Both counter and ptr point to the same memory space.. so when you modify ptr in the loop you end up modifying what counter points to. And btw have you read the description of [URL="http://www.cplusplus.com/ref/cstring/strcat.html"]strcat( )[/URL] since it is not doing things in your case whch you are expecting it … | |
Re: Yes, I think its the only thing which will give you peace of mind...will help you in pinpointing the exact cause of error( hardware or software ). | |
Re: Hey buddy Geeks lounge is for chilling out. You should post your question in appropriate forum to get quick help. . | |
Re: Be specific so that we can move your question in the appropriate forum... BTW welcome to Daniweb. | |
Re: Here Sharky this is in return for all the goody YouTube links you have given me..[URL="http://youtube.com/watch?v=K1rpdq2Otjo"]this[/URL] is one of the best. | |
Re: [quote=joeprogrammer;283080]You mean like [URL="http://www.opengroup.org/onlinepubs/007908799/xcurses/getch.html"]getch[/URL]?[/quote] getch is a non standard function. As far as getting character without enter is concerned, it cant be achieved in standard C. Try looking at your compiler documentation for more support. . | |
Re: *sigh* Hey there May4life I know what I am saying is not officially according to the Daniweb rules but you are spoiling the newbies. Just handing them readymade solutions will stunt their development in these things, they would never think of doing things their own, will always expect an easy … | |
Re: There are a few things you can try out. For eg. you can accept everything as string from the user and parse it to get out the data which you require using [search]sscanf( )[/search] [code=c] int main( ) { char buffer[BUFSIZ] = { '\0' } ; char name[8] = { … | |
Re: You need to escape the \ character since the it is seen by the compiler as the language construct. You can do something like: [INLINECODE] sprintf( acFilename, "c:\\a%d.txt", count ) ;[/INLINECODE] Use [INLINECODE]\[/INLINECODE] to escape the special [INLINECODE]\[/INLINECODE] character. In C and C++ \ is the escape character used to … | |
Re: Something like [URL="http://www.peterprovost.org/archive/2003/05/29/516.aspx"]this...[/URL] . | |
Re: Always post your code in code tags, read the forum announcements for more details. As far as the problem is concerned, dont know what exactly are you trying to achieve here. You are struggling with your syntax. Here, I will give you a prototype of how your program should look … | |
Re: [quote=proliant_fan;262823]vista will use WinFX (which is like .net)[/quote] (Disclaimer: Just my 2 cents) Yeah thats the main problem with these MS guys, they just do whatever makes them $$$$. Opensource is the future. I dont think anything can beat the C++ / Python combo. (Python: Scripting, front end, rapid prototying) … | |
Re: [quote=oRg;282383]the "this" keyword is a pointer to the [B]class[/B] in which it's used. For example: [code]this->idNum[/code] Is referring to the idNum data of the class your writing for. So to answer your question, yes you would only need the "this" keyword if your working with pointers because it is essentially … | |
Re: Do you realize that this is called as a [I]spam attack [/I]and is not legal ? Basically what you are asking for are scripts which sift through websites and finds mail addresses and mails them. This is normally the principle on which search engines are based on, but using it … | |
Re: Creating a uniform color for all langauges is a *Herculian* task not to be bothered with for the time being. Then again it depends on Miss Dani -- is she comfortable writing php scripts for highlighting constructs for each and every language seperately or she thinks that keeping a uniform … ![]() | |
Re: [quote=manutd;280276]As most of you know, the forum displays a pencil when you have posted in a thread. However, the code snippets section has no identification. I would like it if this feature was available, as I've commented in many snippets and it is hard to remember.[/quote] Have already requested for … |
The End.