- Upvotes Received
- 7
- Posts with Upvotes
- 6
- Upvoting Members
- 6
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
51 Posted Topics
Re: [CODE] for(int i=0;i<N;i++) cout<<AR[i]<<" "; cout<<endl; cin>>z; }[/CODE] This part of the code is missing a curly bracket that might be it.. line 17. //k0ns3rv | |
Re: I remeber seeing a page which provided a free sms service, can't recall it's name though. In conclusion, sms gateways is rarely a free service. | |
Hello friends. I am currently involved in a project where we want to export data from mysql to xls, for this we have written a program that is in *jar format. What we want to do is execute this file through php after which we will send it to the … | |
Re: I started programming C++ by reading the tutorials at http://www.cplusplus.com/. Also as someone already said it helps if you figure out a project you want to do after you are a bit more familiar with the language. | |
Re: It's kind of hard to see what the problem is without knowing how you Node type looks, but this is how I would do it. typedef unsigned int uint; class Node { public: Node(uint a, std::string n, std::string s) : age(a), name(n), surename(s), next(NULL) {} private: uint age; std::string name; … | |
Hey! So I've been playing around with OpenCl a lot recently and it's pretty impressive. The first thing I wanted to do was to make an mandelbrot set generator, so I did. It works wonderful and I am really amazed by the results, almost a thousand times faster than my … | |
Re: Yes I would say so. The quality of the game will not be the best of course. If you have previous knowledge of Linear Algebra and 3d modeling you are well on your way. | |
A little program I made to try and remeber C++, first program I've written in C++ in about a year. Tested and working under windows 7 64 bit, run via command line. If you have any improvements or ideas please leave a comment. Cheers K0ns3rv | |
Re: My guess is that there were few realese during the time period at question. When World of Warcraft Cataclysm is realesed i promise you sales will be up a lot. I am how ever not intrested in wow, as said before games are too much alike these days. But I … | |
Hello fellow daniwebians. So I've encountered this problem with querys in PHP. In the system I am working on at the moment we've created an install file which tests the db connection, creates the db structure e.t.c. But when creating the database the query fails. The query it self i … | |
Re: There is one thing that comes to mid but it's kind of a long shot. Someone might have tampered with your "shutdown" button making it call the restart procedure rather then shutdown. Try running: [CODE] shutdown -s -t0 [/CODE] //K0nserv | |
Okay so I have this problem were my computer freezez, leaving me no other option the than pressing the restart button. This seems like a pretty common problem, memory problems comes to mind. But the funny thing is this has NEVER and i mean never happend in a game, it … | |
Hello fellow daniwebians. Consider the following constructor: [CODE=C++] Vector3f::Vector3f(float* f) { x = *f; f++; y = *f; f++; z = *f; } [/CODE] Now let's create an object of the Vector3f class [CODE=C++] //Create an object of Vector3f Float f[] = {13,3,7}; Vector3f myVector(f); [/CODE] All is well right … | |
Re: There are a few big benifits of pointers and references. For example if you have a function that calculates the result of a x^2 equation you would want it to return both the roots. This can be achived by passing a reference or pointer to variables that will contain the … | |
Hey guys. So i've created a static library project and written the code ( one header file and one cpp file ). I have built it and it resulted in (.a) file. I told the compiler where to look for the header file and the library file but my example … | |
Re: Do this via javascript. [QUOTE] <script type="text/javascript"> fuction remove() { document.getElementByID("Button").style.display = "none"; } </script> [/QUOTE] //K0ns3rv | |
Re: The best way to do this is with AJAX. The basic principle is that you pass data to the server which executes it while continue running the current page, without the need to reload. This is the code [CODE] function createPostAjax(openThis,parameters) { var AJAX = null; if (window.XMLHttpRequest) { AJAX=new … | |
Re: I recently did pretty much what you want to do and the way we did it we acquired the data via AJAX and then put the markers using javascript.. Check these links out: [url=http://code.google.com/apis/maps/documentation/v3/]Google maps API V 3.0[/url] [url=http://en.wikipedia.org/wiki/Ajax_%28programming%29]Ajax on wiki[/url] [url=http://www.google.se/#hl=sv&source=hp&q=AJAX+introduction&btnG=Google-s%C3%B6kning&meta=&aq=f&oq=AJAX+introduction&fp=3bd2cb15d6d4bdb0]More relevant links[/url] Good luck too you , be … | |
Re: You either create a database using some gui tool , like navicat or you excute a php script to create the table yourself. You will also have to change the function on row 3 to correspond with your database name. [url=http://www.navicat.com/]Navicat[/url] [url=http://dev.mysql.com/doc/refman/5.1/en/create-table.html]Creating a table using sql query[/url] The code for … | |
Re: I had a similar problem last time i moved, it was my power supply, it had totaly crashed for some reason . //K0ns3rv | |
Hey guys. I am looking for a way to send a fax message through a local machine via php, is this possible ? I have very little info about the system that requires this so i can't be much more specific. Cheers K0ns3rv | |
Hello guys. I am looking for a report/statistics generator for mysql. Basically i want a tool that can connect to a sql database and use columns in different tables to generate graphs, charts etc. It would be good if it has support for timestamps. Is there a tool like this … | |
Hello guys. I am faced with an serious issue in my current project. I have this form, when the user submits it I create an array via javascript which is then encoded in with JSONstring.make(). The data is sent to php via ajax, the problem is that sometimes, I havn't … ![]() | |
Hello daniweb. I am currently involved in a project were we need to be able to generate confirmation mails, our original thought was to code an html mail, but we quickly deserted that idea. Therefor I need a powerful yet simple PDF class for PHP. I have no greater interest … | |
Re: For directx, you should pick up the book "Introduction to 3d game programming with Directx 10" by Frank D.Luna. How ever if you are not feeling ambitious enough to learn 3d programming Allegro, SDL or even Borland graphics work. You might feel restricted torwards borland, but for smaller none realtime … | |
Re: Yea it's possible, but you will have to multithread you program and have one thread running one tone and the other running the other. | |
Re: [QUOTE=Atli;1039973]Ok, I see. You can have PHP create whatever output you want out of that. For example, to create a XML file and save it on the server, you can do: [code=php] // <snipped the DB code> $output = '<?xml version="1.0" encoding="UTF-8"?><root>'; if(pg_num_rows($rs)>0) { while($myrow = pg_fetch_assoc($rs)) { $output .= … | |
Re: Well for starters you need have SMTP on your server, i trust you do. Anyways when a user asks to have there password sent to them you either just get the password from the database and send it or generate a new one and change the database. [url=http://www.google.se/search?client=firefox-a&rls=org.mozilla%3Asv-SE%3Aofficial&channel=s&hl=sv&source=hp&q=php+forgotten+password&meta=&btnG=Google-s%C3%B6kning]Here is some … | |
Re: Well you treathing a char as a string or a charr array. the .lenght() function only works on strings. And you are only passing a char to the function, it should be a pointer to a char array. | |
Hello guys. In this project i am involved with we want to list some columns from a sql database. We want to list them as a table which you can make changes to, but the first two should be edited through dropdown and and the other two which are dates … | |
Re: I would totaly agree with most oppinions conserning windows and microsoft in this thread and yes i have used/uses linux, but windows is superior and not cuz it's better but, because a large part of software are developed for windows. If linux ran directx and a few other programs and … | |
Hey guys, i am currently working on a project. It's a web application for registering the amount of time an employee has worked. I have written the web app for adding a new employee and for adding a timestamps( e.g work done). Now my problem is like this i need … | |
Re: Well if you don't have a Directx 10 compatible GPU, your only option is to run in reference mode which is indeed painfully slow, I am not sure about this but it could be that program notices this and switches to reference mode. Myself i have around 7000 fps when … | |
Re: No one will help you if you don't show effort, start with the assignment and then come here when you run into problems. //K0ns3rv | |
Re: Nice it only has two flaws. Change the system("pause") to cin.get(); And put a while loop around it all so you can do it repeated times. //K0s3rv | |
Re: [url=http://winprog.org/tutorial/]Forger's[/url] | |
Re: I acctualy just finished writing a Yatzhee game and what i did was i created two functions like so: [CODE] void Player::dice(int i=0); void Player::random(); [/CODE] Anyway when ever i want all dices rethrown i call dice() since default argument is 0 which rethrows all dices it calles random 5 … | |
Hey everybody, just wanted to stop by and say hello. I am k0ns3rv which could be translated to tinned food, yea i know wacky name :P Anyways i am currently studing at the lvl of school which could be compared to High School i supose. I have knowledge mostly in … | |
Re: Well basicly what you want to do is write it in the simplest form possible in the text file like so: 1 0 2 3 4 3 23 1 3 4 59 2 and then to get it you do the following [CODE] ifstream load("textfile.txt", ios::in); int map[4][4]; for(int q=0;q … | |
Re: Why not use switch statment ? If you are familir with it. This is a basic switch statment anyway. [CODE] switch(variable) { case 1: //Do stuff break; case 2: // Do stuff break; case number: //do stuff break; Default: /*Stuff in default will happen if the input to the switch … | |
Re: If you are writing a basic windows api program with no extra stuff, directx etc linking shouldn't be necessary.. | |
Re: Fixed it. Change your checkuserguess to this [CODE] bool checkUserGuess(int userGuess,int randomNumber) { if(userGuess == randomNumber){ return true; } else{ return false; } } [/CODE] Also you had forgot to initialize attempts as 0 like so. [CODE]int attempts=0;[/CODE] //K0ns3rv | |
Re: Well what in my eyes seems to be the problem is that you are just printing that the space was taken after which your main game loops just goes on as if that was a valid turn. You have to add a segment of code after the cout so that … | |
Re: My guess is he hasn't written a line yet, looks like an assigment to me. Anyways your program should tell the user that a grade is invalid if it's 0<= or =>100. This should also terminate the program and print the average grade which is computeded as such [CODE] (grade[1]+grade[2]+grade[number])/ … | |
Re: Put it withint [CODE][/CODE] first off all can't read that mess | |
Re: Why don't you use a compiler that actually tells you were your have made an error ? Looking through 190 rows of code is abit harsh. | |
Re: Your request is quite vague seeing as there are several ways to create a triangle, but the easiest one is probebly [url=http://www.uniqueness-template.com/devcpp/]Borland Grapichs[/url]. //K0ns3rv. | |
Re: I am not sure that you can even customize messageboxes, why don't you try learning to program a "real" api program. [url=http://winprog.org/tutorial/]Here[/Url] //k0ns3rv | |
Re: Sorry but i must say that's completly wrong. First of all don't use system("pause"), use cin.get(). Secondly, make sure that you have a project of the type console project open and make sure you source code file(.cpp) is associated with that project. If you have troubles check this image [url]http://www.bloodshed.net/images/devcpp_scr.jpg[/url]. … |
The End.