- 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
182 Posted Topics
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 … | |
Re: I do not not understand how the pipeing program works | |
Re: WAP stands for Write A Program I belive.Teachers commonly use that when they write on a board. About you second question: It easy enough if you think logically.How do you find the number of digits in a number,by counting ofcourse.Now how do you get a computer to count? That can … | |
Re: If you want to try your hand at 2D game, you can use [url]http://love2d.org/[/url] . It's basically a lua game engine, which allows you to write games using lua scripts. If you are fimiliar with C++ SFML ( [url]http://www.sfml-dev.org/[/url] ) provide a very good framework for games. It not a … | |
Re: Code::Blocks would be good if you want an nice to look at interface. But if you are planning to develop only win32 programs then I suggest you get Visual C++ 2005. That's a really good IDE and is very easy to use once you get the basics. | |
Re: There's no tool that can convert a complex 2d image in to a 3d model, simply because there is not enough data present in a flat image. Artists can use 3d modeling software and sample images to make models manually. Simple images, like a 2d logo can easily be made … | |
Re: Try [url]http://gamedev.net[/url] 'Help Wanted' forum | |
Re: [QUOTE=Kerry][COLOR=Blue][SIZE=2][FONT=Times New Roman]Hello, my name is kerry and i just sign up .Well, my question is how do reverse a number input by user using recersive function.Thanks for the help. [/FONT] [/SIZE] [/COLOR][/QUOTE] You mean recursive funtion.The concept is quite simple.You take a number (to be reversed) and divide it … | |
Re: This is funny ..... Dint you read the faq .. no homework solutions. | |
Re: You seem to have a funny problem eh,well once you really have file handling in your hands you will look back and laugh. Ok first the rand() does not return any random numbers but ones form a array so you must use the srand(...) to seed the array.[I dont know … | |
Re: You can use text edits for doing that but it might be a bit boring having to make use of so many #define s. Then again try google for source of some sales management software and check it out. Also look into MFC, it provides a lot of things to … | |
Re: You could try looking in *nix development fourms.Also try looking in google.You will definately find good info if you search properly. | |
Re: #pragma is usally used to set compiler options within the source,like telling it to link to a static lib before compiling.That stuff usally need one to make a project but with an #pragma it's quite easy if you are in a hurry. Oh,it's syntax is usually compiler specific.For example in … | |
Re: You use simple vectors. You can rotate vectors with minimal calculations. So when the ball hits the paddle, based on the distance from the center, rotate the directional vector of the ball by a certain amount of degrees. [url]http://chortle.ccsu.edu/VectorLessons/vectorIndex.html[/url] The above link contains a pretty good coverage of vector math. … | |
Re: Start really simple. Learn the basics/intermediate stuff in C++ ... should know classes, file i/o, a working knowledge of STL and a bit of Win32 programming and you are good to go. When I started I knew C++ and no game programming, but I was able to do a full … | |
Re: [QUOTE=cscgal;381989]Web designers use [search]call to action[/search] page elements to send subliminal messages to web visitors about where you want them to click. Read up on it - you can apply similar techniques to Google AdSense by varying color and placement. And always use Google AdSense channels to do A/B testing.[/QUOTE] … | |
Re: Use binary mode to open files which deal with encrypted text. That should solve the problem with the EOF char :) P.S Refer to my reply to your mail. If you get it working post the working program here :D | |
Re: Try searching around for a 3D engine [url]http://irrlicht.sourceforge.net/[/url] | |
Re: Try making simple 2d games first. However if you do want to make a counter-strike style game it is possible (when you've had enough experiance ofcourse) with the tons of 3d engines available now (for free and paid ones). They provide all the ground work like resource loading, rendering, networking, … | |
Re: The main issue here is not which language will execute faster .... it hardly matters for most computers when the games are mid to small, there will be plenty of processing power left over. Only huge 3D games will require the raw power C/C++ allows, but as there's more complexity … | |
Re: Ask the user to do it ;) Btw I have seen such funtionality only in carppy trojans and joke programs. Try looking at [url]http://www.google.com/[/url] |
The End.