182 Posted Topics
Re: use regular expressions Look here: [url]http://ca3.php.net/preg-match-all[/url] | |
Re: You can render it as text. The following link shows how to render text in glut: [url]http://www.lighthouse3d.com/opengl/glut/index.php?bmpfont[/url] You can use sprintf to convert numbers into strings: [url]http://www.cplusplus.com/reference/clibrary/cstdio/sprintf.html[/url] Should be all you need to start displaying any text you want ^^ | |
![]() | Re: You could try factory methods: [url]http://en.wikipedia.org/wiki/Abstract_factory[/url] For a game you could have an array/vector like std::vector<bcAbility> hero_ability; The base ability class [code] class bcAbility { string AbilityName() void Do() } [/code] Having a factory class would allow addition/removal/modification of any number of abilities. Actual abilities would be derivatives of the … |
Re: If you need multiple comments, use 2 tables. One for the program details, and one for the comments. Use an id tag (preferably the unique key from the program details) [code] CREATE TABLE tvprograms ( p_id int(11) NOT NULL UNIQUE AUTO INCREMENT, p_name char(40), p_desc tinytext, p_misc tinytext ); CREATE … | |
Re: use the function mysql_escape_string(); It will make sure all the characters are escaped and safe to use in a mysql query escaping a character is adding a \ in front of a character. Eg: ' Hope that fixes your problem. | |
Re: If you have a domain on a web host goto your control panel in your hosting account and look for a button/link/panel titled subdomains. Most control panels would just have you enter the name of the subdomain and click ok to set one up. | |
Re: O.o The balance , profile etc can be part of a member table, and the sign up/upgrade areas can be scripts that modify the table when signup/payment is received. If you are looking to make a pay to click site like bux or adbux then it's probably best you hire … | |
Re: [QUOTE=eranga262154;490768]Thanks, How about this way... [B]string MyStr( (const char*)MyCStringObject );[/B][/QUOTE] Old style cast. Read: [url]http://msdn2.microsoft.com/en-us/library/ms174288(VS.80).aspx[/url] [url]http://msdn2.microsoft.com/en-us/library/awkwbzyc(VS.80).aspx[/url] | |
Re: Simple. Take the text of the article as a string, crop the string to a certain size, append "......" to the string and display it. [code] <?php /*################################################################ # # # You pass the script a string, a length you want the string # # to be and the trailing … | |
Re: 8800GTS HAHA.... you dont need to worry about frame rates in the near future. Just make sure v-sync is off in the games and they should run fine. If you are playing multi player games, dont run p2p software in the background. Keep your computer clean, dont have a ton … | |
Re: Oh, Are you asking how to set custom error pages? Well, .htaccess or by using the control panel. Look in you CP for custom page or custom error pages. | |
Re: Hi, You should always look on the net for tutorials first. Then there's the php documentation pages. Also checkout these: [url]http://curl.haxx.se/docs/[/url] [url]http://www.php.net/curl[/url] However if you do have to get a book checkout the following places: [url]http://www.blueportal.org/[/url] - Tons of IT books [url]http://www.ebookshare.net/[/url] - Wide selection of ebooks [url]http://avaxsphere.com/[/url] - books, … | |
Re: C++,Java Math GFX - (OGL,DX) 3D - (basics, rendering, lighting) Physics - (basics, some API) Shaders - (GLSL,HSL, CG) Engines - (pick one or 2) Networking - (some APIs) Basically you should know a bit about everything.And concentrate on 2 or 3 areas. Also try making a game yourself. That's … | |
Re: Let me warn you .... modding is not the way to go if you have no previous experiance with game programming. Sure, you will be able to get some fancy effects to the screen, but mostly you would be just twiddling with settings... and that's not really making a game. … | |
Re: [url]http://tvision.sourceforge.net/[/url] [url]http://www.trumphurst.com/toolkit.phtml[/url] [url]http://www.usinglinux.org/devel/rhtvision.html[/url] O.o I would think learning a GUI API would be easier (lots of choices, lots of documentation etc).... and look better. You will be able to accept text input via a GUI too ;) | |
Re: I agree with Duoas. If you want delays used timed functions like delay() or sleep() or whatever else. If you are doing a txt game ... the screen can be cleared using clrscr() (conio.h) If you want a proper screen under DOS, look up Mode13h on the net . You … | |
Example: Navigate: PHP Code Library > PHP > Sub1 > Title V Any ideas, tutorials no how to do that using php & mysql ? each category should be able to have items and more categories under it. It should use a single table to store all the category titles. … | |
Re: First get a C++ book, preferably one that covers the C++ standard ... not a tutorial book .... more like one which covers the ISO C++, with all the details on various aspects of the language. C++ Primer might be a good book if you just got you programming skills … | |
I am trying to a page load an external website's page within a div, but it's just not working.... Anyone got any ideas? I do know it's possible: [url]http://orangoo.com/labs/GreyBox/[/url] -- loads google.com in a popup Here's my code [code] <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link href="s1/style.css" … | |
Re: Oh common now,that's simple stuff.Try what you can and post your code here,we will help you out in your problem area.(No homework solving handed out :D) | |
Re: I am not sure if you are using TestCooperativeLevel() correctly .... [URL]http://msdn2.microsoft.com/en-us/library/microsoft.windowsmobile.directx.direct3d.device.testcooperativelevel.aspx[/URL] [quote] If the device is lost and cannot be restored at the current time, [B]TestCooperativeLevel[/B] throws a [B]DeviceLostException[/B]. This is the case, for example, when a full-screen device loses focus. If an application detects a lost device, it … | |
Re: Dont have any code atm .... But you could look to catch the window's minimize message and skip your render & update parts of your game. Then catch the restore message, reset/reload any resources you need (images, timmer, models ect). ... that's how I used to do it. I use … | |
Re: [url]http://www.ea.com/official/moh/pacificassault/us/diary.jsp[/url] [url]http://www.gamesmodding.com/?game=42&type=2[/url] The SDK [url]http://www.3dgamers.com/news/more/1096480363/[/url] If you really want to mod a game try HL2.... there's a lot more info and tutorials available on the net for it | |
Re: Well if you are going to use C++ and OGL/DX then there is going to be a bit of code to write. OpenGL would be easier as it's less confusing and has a cleaner api. If you just want to show off molecules and not really interested in making a … | |
Re: Also it you are going to be a 3D artist show off high res models when ever you can. Also have a portfolio site or something which shows image previews first before linking to the full images. Looks a whole lot more professional. It is also a good idea to … | |
Re: Game programming requires you to have nice base in whatever language you choose. Even if you dont know everything, if you know the basic concepts and a working knowlwdge of various APIs then things will be much easier for you. If you are just beggining to program, you will soon … | |
Re: Oh, my poor child :-), [just kidding]. If you have an array like array[3] you can use only 3 elements i.e 1. array[0] 2. array[1] 3. array[2] If you go beyound that you will get errors as you would be writing over memory used by some other program. so array[3] … | |
K, It's fairly easy to use a ostringstream object or a derived class to output text like a normal stream class like cout. Eg. [code] class console: public ostringstream { public: void Render() { std::string buff = ostringstream::str(); //Some code to put it to screen //Write it to a file … | |
Re: Use the Package Dowload utility to get FMod. Goto Tools->Check for Updates/Packages.. You can find a package for FMOD on one of the download sites. Look under the Audio category. You can the goto File->New->Project Choose the Multimedia and select the FMod sample project. Look at the code, it's pretty … | |
Re: hmm.. if the date is in the month of Jan or before/on Feb 29 it will not matter whether the year is leap or not. Now we know that Jan,March,May,July,Aug,Oct,Dec has 31 days and the rest 30 days with the exception of Feb which can have 28 or 29 days. … | |
Re: Try using the std::vector template class. [code] std::vector<int> my_int_array; //Add elements my_int_array.push_back(10): my_int_array.push_back(2): //Display all the numbers for(int i=0;i<my_int_array.size();i++) { cout<<my_int_array[i]; } //Deletion of position i :P my_int_array.erase(&my_int_array[i-1],&my_int_array[i]); [/code] If you can only use pure arrays, then you will have to learn about dynamic memory allocation to modify the size … | |
Re: Yea,we aint answering machines nor auto homework doers.We help out solving difficulties. :),Have fun(Btw by welcome) | |
Re: How am I supposed to know what you can do?(Just kidding) Yes you can in C, C++ and ASM.(ok some other languages also).Do a few searches on [url]http://www.google.com/[/url] You will find something. | |
Re: Borland free C++ compiler i.e version 5.x does not come with and editor or and IDE. But I heard they did release version 3.x compleately free along with the IDE.Go get that one if you can. [url]http://www.borland.com/[/url] | |
Re: char chr = 'a'; cout<<chr; //will show the char cout<<(int)chr; //will show the ancii code chr = 232; cout<<chr; //will show what ever 232 repesents cout<<(int)chr; //will show the ancii code i.e 232 | |
Re: Hurry up?,where ?? To get plenty of that stuff got to [url]www.google.com[/url] or search the C++ fourm and you will find one. | |
Re: Choice ( A ) is the most accurate.There are more funtions getline can peform. | |
[code] Mode13h The Beginning of 3D/2D Graphics [/code] [B]Intro[/B] Lots of people want to know how to do graphics but find most APIs like OpenGL, DirectX etc too complex for a beginner, especially as they involve GUI code which follows a different approach from the simple dos programming Here, I … | |
Re: *Yawn*, me too.Who cares ???.We will have to use what ever the policy making companies shove at us.Yup it's quite too the OpenSource is only open before money comes in.It's like water,can dissolve anything given enough time.Brrr <b>Resistance is futile.</b> Nah......,You can do that till you are dead :D,and even … | |
Re: Are you including stdlib.h in your source? or you could try using the delay() function... win16 version? what sort of comp are you using? | |
[code] Graphics In Pixel Part II B 'Realization of an Enigma' [/code] Introduction ------------ Life's unfair, writing good tutorials take a lot of time, not typing it, but thinking up the content does. Life's fun too, I had quite a good time learning new stuff. My hobby at present is … | |
Re: DOS If you use Borland then you will have to set the linked options to dos. | |
Re: No way.You will go crazy if you process on char at a time.Just read a whole line into a char array and then encode it.I will give you a very simple encryption algorithm called XOR. [code] void XOR(char *message,char *pass) { int p=0; for(int i=0;message[i]!=0;i++) { message[i] ^= pass[p++]; if(pass[p]==0)p=0; … | |
Re: yea,change you nick.It's hard to think of a number as a human you know. New to the internet?I agree with kc0arf it is a very bad idea to let your details float around.People can/will put it to misuse(especially on the internet[Take it from a guy who has gone real deep … | |
Re: &val means address of the varialble var *p (if is a pointer (int *p;)) means value at address pointed at by p.Changes this will change the variable it points to. int val = 1; p=&val; val+=10 cout<<val<<" *p="<<*p; //output is the same for both (*p) += 4; //changes the value … | |
Re: Try [url]http://www.google.com[/url] and search for writing compilers.You will find loads of solid info on that.Also search for Lexical Analisis. | |
Re: Did you check the C++ tutorial forum here? Link:[url]http://www.daniweb.com/tutorials/6811.html[/url] | |
Re: Look in the tutorial forum at dani too ;) and google | |
Re: Search the forum,I remmember typing out an entire function to get passwords while displaying *'s and supporting backspace too. [i]In a hurry gota go...[/i] |
The End.