- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 12
- Posts with Upvotes
- 10
- Upvoting Members
- 8
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
61 Posted Topics
Re: Don't you think you are wanting to much(that too with calling yourself 0 in maths)? Anyways my advice is: 1.First get the hang of PHP, MySQL and other web technologies. 2.Start with simple web applications, eg. storing comments in a database. 3.Get real, get into existing open source programs. Even … | |
Re: Please give more information. What is A and B? What do they do? briefly. Vinayak | |
Re: If your exe and dll can remain together, why not txt file. Maybe you can distribute them together as a zip file. Or you can use a free installer for distributing "everything" as a single "exe" Like [URL="http://www.createinstall.com/index.html"]http://www.createinstall.com/index.html[/URL] Vinayak | |
Re: I would say go with allegro. Also i will suggest Sudo Bash's comment. Vinayak | |
Re: Now i am curious about few things. 1. why astrology? (casual question, no need for answer) 2. why not "using namespace std;" 3. how come i am the first one to appreciate this? its definitely a good program, and so are your coding habits. | |
![]() | Re: Unreal Engine is a big thing for your small game. Moreover you wont be programming in C++ inside it.(Most of the time you will be editing a level in it.) So keep it for later. For first project keep things simple. for 2d try Allegro game programming library for 3d … |
Re: Since you have posted in C++, i want to ask if you have made a "project" in studio and run the famous "Hello World" program. the last 2 reasons for problem are not the trouble makers in my opinion. Vinayak | |
Re: Please write your question a bit more clearly. And for that you need to first ask the question from yourself. there will always be differences in browsers, but you should still test your designs in as many of them as you can. Most of the time it is a wrong … | |
Re: While there are tons and tons of tutorials and videos on internet for C++, a book is the best thing to start programming for a beginner. After reading and practicing a few lessons, you may then head over to internet. | |
Hi I am having trouble achieving 100% width of footer. If in css width, I set it to 100%, after resizing or after scrolling page horizontally the footer background is lost. If I set width in pixel, the problem increases(i am sure u know why) Do you know any fix … | |
Re: Hello if i have got u right, the problem is quite simple and you are complicating it unnecessarily. i have got code ready, but i am not posting it now. use these steps 1.read decimal 2.store decimal modulo 2 in a array called [B]binary[/B] 3.divide decimal by 2 4.repeat 2 … | |
Re: If you intend to display ASCII char on the screen, before trying to code snake game, try this. Move a single char (can be a #, $, @ or anything else) using Arrow Keys. Then randomly place char (like *) as a food on the screen, now as you move … | |
Re: i have the code ready, but i am not giving it now. use sprintf function to create filename (as in number+".txt") use [CODE=c]FILE * fopen(char * filename, char * mode); [/CODE] to open the file. | |
Re: You should not create a page for each person, in my opinion. You can use a custom page to simply echo the contents of the form. If its a profile page you are creating, you can store user details in a database. Vinayak | |
Re: You can use session variables in many many situations. for eg. i have used them for - 1. storing user's details (like name) after login in a session variable, then i can display username on each page of website. [CODE=php]$_SESSION['username']='XYZ';//this is not actual code[/CODE] 2. storing questions & answers for … | |
Re: [QUOTE]how? I tried to put it in a while loop but couldn't [/QUOTE] what is the termination condition?(you have to terminate at some point) if there is none, you can ask the user "Do you want to continue?" and make it the termination condition. sample method: do { //get input … | |
Re: Nice effort there, but 3 points 1. headings should have different colors than paragraph. also my eyes start to burn on staring at white bits in black (hint) 2. reduce focus on forum manners (its hardly related to game dev) 3. the url is quite looooooong (though i understand) Vinayak | |
Re: [QUOTE]Is PHP a good way to implement a database driven Web site?[/QUOTE] PHP is a [B]very good[/B] way to implement a database driven Web site or any other type of website. Also it is the most popular choice(i googled PHP, ASP and JSP and read the number of results). ![]() | |
Re: i don't know why you want so many zeroes. But if all you want is to encrypt password then you may use md5 and salts. With a unique salt for each user. If md5/salt is new to you, you should check out this [URL="http://php.net/manual/en/function.md5.php"]http://php.net/manual/en/function.md5.php[/URL] for random id's you may try … | |
Re: first you should remove any goto from your code. Always use conditional construct (if, while, for), as they are easy to manage and follow for you and avoids CPU overheads as well. | |
Re: Hello You are one of the many who dream (whole life) of making a good game(me being one). So 3 suggestions 1. Don't wait, get going. Now is the right time. Even if you think your knowledge is limited, you will learn things in the process. And if you make … | |
Re: use NULL as arg to time [CODE=c++] srand((unsigned)time(0)); //change this srand ( time(NULL) );[/CODE] | |
Re: After writing [B]for[/B] and [B]cout[/B] 5 times, you should have understood the need of nested loop. | |
Re: [QUOTE]I thought about learning C++ but then i read somewhere that learning obj-C or Java is a better idea.[/QUOTE] C++ is the best language to start (and keep going). Once you know it (or any OOP language) you can easily code in Java, Python etc. As for windows or any … | |
Re: what exactly is your query? you haven't even provided the code. | |
Re: 3 points 1-use break after each switch case(as mentioned) 2-indent code properly and include comments (for your sanity) 3-while and switch alone cant make up a game. (they can make up mess though!) 3 more points 1-learn functions (as mentioned) 2-learn class, struct and data structures (at least stack and … | |
Re: This particular thread [URL="http://www.daniweb.com/forums/thread335405.html"]http://www.daniweb.com/forums/thread335405.html[/URL] had similar question and is solved. So you can check it out. Vinayak | |
Re: for your program you need to ask user for number in a loop(preferably do while loop) with the condition that number!=0. Vinayak | |
Re: Also you can use a simple menu driven program where you display all the shapes in a numbered list, ask for a number, and then ask for length, radius etc. if you go with asking it as string, i suggest you keep multiple names for a shape. like a box … | |
Re: Please do not use so many ? z and ! there are better ways of asking questions. for instance the post title shouldn't be 'need help in php' | |
Re: there is a slash '/' at the end of function. Remove it. [CODE=c++] #include <iostream> using namespace std; void writeBackward(string s, int size) // function definition { //opening brace if ( size > 0) { // opening brace for the condi cout<<s.substr((size-1), 1); //display the last chracter writeBackward(s, (size-1)); //display … | |
Re: I started learning programming in C++(in a manner similar to C) using Turbo C++ IDE. While turbo is outdated, its simplicity gives confidence to beginners, to start thinking like a programmer. Later on you can switch to some better IDE. Note:Turbo was built for MS DOS. So it may not … | |
Re: Favicons are a part of your overall site branding. They show up in your web browser, but also in news feeds, so it’s important that you include one with your site. Imagine sites like Amazon, Google, Twitter (Daniweb too.. :D) without favicons. ![]() | |
Re: Yes AJAX is the solution. For your ease, you may try Jquery AJAX, which is really really simple and effective. Example- [CODE=Javascript]$.ajax({ type: "POST", url: "submitEmail.php", data: "email=example@example.com", success: function(msg){ alert( "Data Saved: " + msg ); } });[/CODE] This code will not work for you, but it does exactly … | |
Re: It is always a good idea to use PHP for form validation. But you can as a add on consider JavaScript validation, to save server from some of the unnecessary processing. Something like this can solve your problem, but is not the solution for your problem [CODE=html]<form action="process.php" method="post" name="register_form" … ![]() | |
Re: [QUOTE]1. how is c++ structure different from array?[/QUOTE] structures may contain dissimilar data items, whereas array cannot. [QUOTE]2.how to define syntax,create,use and store data in struct variable?..[/QUOTE] [CODE=c++] struct mydata { int item1; int item2; char item3; }; mydata a; a.item1=0; //so on [/CODE] [QUOTE]3. how to create an array … | |
Re: the documentation is very necessary for you. Here iam sharing a code i used on AVR atmega8, for 'Line Follower' Your purpose must be different, but the complete code here may help you. [CODE=c]#define F_CPU 12000000UL // define cpu frequency for delay function #include <avr/io.h> // includes input/output header file … | |
Re: I don't know how much PHP you know, but i can say that it is fairly easy to learn and master. PHP is very rewarding, though no one can tell when you can get the job. As already mentioned PHP alone can not do the work. You will have to … | |
Re: [QUOTE]why is it allowed to store chars in ints[/QUOTE] because int (2 or 4 bytes)is bigger than char (1 byte), there is no data loss in assigning char to int, while the converse may lead to data loss. | |
Re: [QUOTE=;][/QUOTE] try this [code=HTML] <div id='fail' name='cool'>300</div> <form method="post" action="send.php" name="form1"> <input type="hidden" name="field"> <input type='submit' value='submit' onclick="document.form1.field.value=document.getElementById('fail').innerHTML"> </form> [/code] | |
Re: please replace ... with appropriate values, so that we can see the code. Moreover usage of amp_m (char *) is wrong. Vinayak | |
Re: Is it reasonable for you to print file as binary file instead of text file? This way you can read and write entire structure. But yeah if you need a text file only then you can : Instead of ------------ you can use some character which you won't use anywhere. … | |
Re: Hello the solution i have used before is : to create a SESSION variable 'error' on logincheck.php set this variable to desired string value if anything is incorrect. else 'unset' this variable and in main login page, below the submit button insert something like this [CODE]if(isset($_SESSION['error'])) { echo ' <div … | |
Re: Saith is correct in pointing that you should declare array as [CODE=c++]int problem[10];[/CODE] [QUOTE]I want to know which problem came up most frequently. [/QUOTE] You can perform sorting on the array [B]problem[/B] while using a separate array for index numbers. [QUOTE]In addition, I also want to be able to label … | |
Re: You are running this program on local host. I think there should be a server on cloud to do that, not XAMPP on your system. And i dont think Drupal is the solution for the problem. It is a complete CMS. Vinayak | |
Re: I included string.h and modified 2 lines [CODE]char pop() { return str[--top]; }[/CODE] and in function parse [CODE]ch=pstr[i];[/CODE] and managed to get 3+7=10 but 4+5+7 throws error "invalid operator error." and still prints the wrong answer. Debugging can help solve the problem. Trace through each line. Posting partially corrected code … | |
Re: To find whether a number 'X' is prime: Run a loop starting from 2 upto X/2 Inside loop check if X%iterator == 0 if yes then break from the loop and print that number is not prime. If loop runs till the end the number is prime. Vinayak | |
Re: Are you facing trouble in reading from file or you cant build solution to your problem? Vinayak | |
Re: You have not specified much, but still i will give some important points 1. Atleast 3 to 4 times the web space currently your site uses. 0.5 GB should do. 2. Unlimited Bandwidth 3. since it is php, it depends on what all you are using or plan to use, … | |
Hello all Currently i am developing my first game using Allegro 4.2.3 in C++. but i have got few problems/confusions 1.i want to use different font from that available by default. I have read there wiki and articles but i could not figure out any simple way. Specifically i would … |
The End.