- Strength to Increase Rep
- +8
- Strength to Decrease Rep
- -2
- Upvotes Received
- 27
- Posts with Upvotes
- 21
- Upvoting Members
- 19
- Downvotes Received
- 2
- Posts with Downvotes
- 2
- Downvoting Members
- 2
File I/O With C++ Fstream **Intro** File handling is as simple as writing in a book, much easier to modify and find. It's so simple people get confused with it :-). Welcome to the world of file handling. We will use the c++ fstream classes to do our file handling. … | |
Re: conio.h It has a lot funtions for console input/output.Take a look at it. TextColor(RED); TextBackground(BLUE); The color values range from 0-15 with 0 being black and 15 being white [i]warning,i am not too sure of the funtion names,been a while since i used this, though i used it almost everywhere, … | |
Re: [url]http://www.hostingplex.com/r/12364[/url] Hosting for $3.95, (yearly and bi-yearly plans) 300GB space 3000GB Transfers Free domain on yearly plan Unlimited ftp accs, mysql dtbs, subdomians etc Signup took about 2 mins for me, just basic details and payment. Setup was almost instant. I got my domain at fxdomains.com, the signup was kinda … | |
Re: maybe you should try tinkering with the compiler options or try including both winuser.h and stdafx.h | |
Re: First ... use code tags to highlight your code... [*code] [*/code] (without the *) Also dumping the whole file into your post does not really help... where's line 376... one's going count the lines.... P.S Check this post: [url]http://www.daniweb.com/forums/thread72874.html[/url] | |
Re: Most of the resources mentioned here are a bit advanced , used for 3D games, and requires quite a bit of reading to actually use in a game. Here are a few libraries that should hopefully help in making simple games, with a much lower learning curve. What do games … | |
Re: [QUOTE=cscgal]Can someone please explain to me the difference between ++i and i++ when written as part of an expression (i.e. within loops and if statements) ? Thanks :)[/QUOTE] [b]Could I suggest a book?:[/b][COLOR=RoyalBlue] C++ Primer 3rd Edition[/COLOR] Covers tiny stuff like performance details and the new C++ standard very well,bit … | |
Re: It's easy once you get to know the windows message handling [I will assume you checked out [url]http://www.winprog.org/tutorial/[/url] it's good] Hey read everything and if you need more come back here.[I can help you eith the message handling]. You cant compile GUI like dos, you will have to change some … | |
Re: x = (float**) malloc(2 * n * sizeof(float*)); That's the problem I belive, why the 2? ,just put n like x = (float**) malloc(n * sizeof(float*)); Then try....... Also put in debug lines following each step,that way you can quickly find out where the problems are.... And this is really … | |
Re: Sorry we cant.This is a fourm for programming discussions not for getting your homework done by others.We dont do home work.We just help each other solve problems we enconter. Go ahead and search at [url]www.google.com[/url] | |
Re: Use string.h [CODE] strcmp(str1,str2); [/CODE] returns 0 if they are equal | |
Re: Sorry, we are not your homework doers. Anyway new and delete are tech info so here is an example [code] int *n=NULL; n = new int [10]; if(n==NULL)cout<<"Error:Not enough Memory"; delete[] n; [/code] If you use a new statement then you should always delete it else your comp will soon … | |
Re: I would suggesst you first learn structures,classes and file i/o before trying games.You will just be frustrated and end up failing if you jump into games too soo. Try [url]www.google.com[/url] and search for c++ tutorials. | |
Re: If you want a tut on fstream look in the tutorial fourm :D | |
Re: My God I even had a comp science teacher ask me this.Arrrg one will go mad. It's simple.Cut a few funtions out of you code and paste them in a file with a .h extension and call #include "your_header_name.h" to include that. Note: not < > but " " if … | |
Re: Guys and gals just dont seem to understand file handling Check this link [url]http://www.daniweb.com/techtalkforums/thread5720.html[/url] I give a basic intro on how to use a database.It's just the steps you can follow to retrive or write data.I use structs but you can also uses classes(Hey calsses are just structures with funtions … | |
Re: yea, also you can press Ctrl-End (which take you to the end of the page) and press enter (to make a blank line ) Simple | |
| Re: An array is declared: datatype array_name[int_size]; Eg. int vals[10]; int *p = vals; Then p[0] = vals[0] and p[1] = vals[1] and so on. Also you can access the vals by *(p+i) instead of the [], and the expression is read as the value at the address of p+i. An … |
Re: hey,I will give you a direction. You will first have to make a funtion which will compare 2 strings and say which one is greater by comparing the individual chars and returning when it hit's a char which is no equal to the other, like sad sam, (in this case … | |
Re: :P O.o Checked bux ...... 20 ads per day... 1 cent per ad.... payout at $10. That means 50 days of work. and 10-20 mins everyday. 9-11 Hours of work and $10 !!!!! Use that time to learn something and do some real work. | |
Hi, I am looking for a way to use minimal javascript to open a popup window when the user clicks on an input field and allow them to choose one string inside the pop up window (like click on a radio button) and get the input box in the parent … | |
Re: Do you want a bot which plays the Vampires game? | |
Re: Looki,Looki I havent done a c++ tic-tac-toe yet,so I can only give some ideas. Game Screen [1][2][3] [4][5][6] [7][8][9] You said it was 3x3 array.Dumping the user's need to enter a x,y loc would be a good idea.Just let them enter the single numbers like above and calculate the x,y … | |
Re: Yes you can. There are multiple ways to do that. The easiest way to use some 3d engine, but that will require you to know a few basic stuff, a bet beyound begginer level. You could learn the Win32API and use DirectX for you gfx,sound,input but that involves more work. … | |
Re: Try this page: [url]http://www.easysoft.com/developer/languages/php/sql_server_unix_tutorial.html[/url] However I'd recommed you use MySQL rather than MS SQL. Get XAMPP at portableapps.org if you need to carry it around (in a usb). | |
| Re: Here a file i/o tut (detailed :D) [url]http://www.daniweb.com/techtalkforums/thread6542.html[/url] Once you have read a random word then you can go a head with the game Look at something I wip up on the fly,may not be too correct [code] //headers void show(char* s,bool *d,int len) { cout<<"\n\n"; for(int i=0;i<len;i++) { if(d[i])cout<<s[i]; … |
Re: You could also create an interface using get or post methods using a php script via which your game can get results to preset sql statements. Your game can call the script to get the data or even change it... but it may not be the best way to do … | |
Re: Woo, As far as I know graphics.h use BGI.You can use it with Turbo C++ like Asif_NSU or use Borland C++. In Borland C++ right-click on the cpp source window and choose Target Expert.You should a beautiful window with options everywhere.Just look to the lower right and you should see … | |
[CODE] Creating Servers for handling Multiple clients Fog Edition By FireNet [/CODE] (This document is dedicated to my friend Aaron Anderson) (Fog Edition means I dont tell you everything stright.All the info will be there but you will have to do much thinking) Servers and Clients,the backbone of the internet … | |