- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 8
- Posts with Upvotes
- 8
- Upvoting Members
- 6
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
59 Posted Topics
Re: Depends. If you want to make top-notch professional games, c++ is the language to learn and learn well. Even if you end up needing to switch over to another language, it will most likely be more simple and an ease to learn. | |
Re: Applets are - as far as I know - why Java is known for being in web pages. So do some research on Java Applets if you're wanting more power in your websites. | |
Re: Perfect World I've heard is a lot like WoW, I'm not sure because I've never played WoW. But I've played Perfect World for years and I'm not bored. It's an amazing game, and if you join Heaven's Tear server send me a pm on here and I'll add you :_ | |
Re: Divs are containers (usually for styling and such), anchors are links. Usually you'd place links and such within a defined container, not the other way around. What kind of practical application are you thinking? Because a link is usually not more than words, or a picture. | |
Re: 01010111011001010110110001101100001011000010000001110100011010000110100101110011001000000110001101100101011100100111010001100001011010010110111001101100011110010010000001101001011100110010000001110011011100000110010101100011011010010110000101101100001011100010111000101110 | |
Hey everyone, I've made a game with SDL and I'm now trying to distribute it. I've included all of the required .DLLs and such but now I get this error whenever I try to run the .exe: The application or DLL E:\GAME\DEBUG\MSVCR100.dll is not a valid Windows image. please check … | |
Re: Did you link to the jQuery library? | |
Re: It is actually a fantastic book. :) Don't expect this to be the only C++ book you will read, keep reading books, articles, reference material, lessons, etc! Read everything you CAN! | |
Re: If you want to make browser-based games there are many different languages that you could learn. I read somewhere that Evony was written in Adobe Flex(which is basically Adobe Flash - Actionscript) - so you could learn Actionscript. Or if you wanted to program something more like Runescape you could … | |
Re: Wow this is weird... Well... To answer the question about making a good game - I'd aim for C++ and DirectX or OpenGL... but honestly before that I recommend starting out with simpler games.. for now I'm using SDL to wet my feet in and get a little used to … | |
Re: Try [CODE] for (int i = 0; i <= 127; ++i) { for (int j = 0; j <= 16; j++) { cout << char(i) << " "; if (j == 16) { cout << "\n"; j = 0; } } }[/CODE] | |
Re: You need to use braces if within the if (conditional) you have more than a single line. ...Does not require braces... if (age>18) cout << "You may enter the bar"; ...Requires braces... if (age < 18) { cout << "You're too young."; return 0; } | |
Okay I'm damn fed up with this problem ever since I've been trying to organize a bunch of global variables and functions. I'm organizing the variable/function declarations in a header file and defining them in a separate cpp file. So, Globals.h and Globals.cpp.. I then try and link this both … | |
Re: Qt Creator is your best bet and there is A TON of tutorials and help all over the net for it. Have yet to learn it myself however. >< | |
I'm just wondering what kind of free SQL API I should use to connect with c++ so I can use a database with my programming to make it a lot nicer and more neat for my objects... I've done a bit of search and fount things like ADO or ODBC... … | |
Hey all, I want to add a vector to my inventory class so that it can hold whichever item data type is passed in. I'm having trouble with setting the size of the vector so that I can put items in it. Here's my code.. Whenever I run it I … | |
| |
I'm working on a map editor and the tiles show up i a file as [CODE]1, 0, 0, 1, 1, 0, 1, 1[/CODE] so here's a 4x2 map. I'm wondering how can I parse out the integers from the commas and assign them to a multidimensional array so that \i … | |
I'm just curious, what are the most important c++ concepts you need to know (as specific as you can be) to create one, and where does one begin? | |
I'm trying to make a small text-game that revolves around armies. I have a unit class [CODE] class Unit { protected: string m_name; short m_health; unsigned short m_damage, m_block, m_experience; public: Unit() { } }; [/CODE] This was a rough outline - I'd later add methods that I'd want the … | |
Re: Your function prototypes are: [CODE]7. void printStock(int,int); 8. double Sales(int,int,double);[/CODE] Your function definitions are: [CODE]58. void printStock (int v[], int n) { for (int i=0; i<n; i++) cout << i << v[i]; return; } double Sales (int v[], int n, double cost) { int autos=0; for (int i=0; i<n; i++) … | |
Re: The dereference operator (*) doesn't cause an error because it is simply dereferencing the actual value. It is the same as altering the value of a variable passed by reference, however since it's done by pointer, to assign/reassign the value of a pointer we need to dereference it so we're … | |
Re: What bigwhiteegg said is correct, to demonstrate this I've added it into your code and hope this makes it very clear where your problem lies. [CODE] #include <iostream> using namespace std ; int main() { float score ; char grade ; // read in total score cout << endl ; … | |
Re: If you've got any c++ skillz, you should be able to make this. Learn about random number generation, loops and functions. Then you should be set for a number-style game. :) | |
Re: There are two opening curly braces after the do keyword on line 82, this may be interfering. | |
Re: I'm not sure exactly which loop you're looking at here. Basically the whole main function? If so, then you could use a do while loop and have the condition set to a user-inputted variable. If you're talking about the for loop that continues until x > ACCTS, you've set ACCTS … | |
Re: string if_grade(int grade) { if (grade >= 9 && < 10) return 'A'; else if (grade == 8) return 'B'; [etc...] } string switch-grade(int grade) { switch(grade) { case '10': return 'A'; case '9': return 'A'; case '8': return 'B'; [etc...] } } | |
Re: if you put yearsUntilRetirement in the switch statement it would be based off that and the user inputting an option would be useless | |
Re: class Money { protected: int value (5, 10, 20) virtual void Spend() = 0; [other methods...] } now you have a simple interface Money class that you can create the other money classes off of, although in this case, since they're about all the same and the only thing changing … | |
Hello! I programmed in c++ for a while but did not get very far into OOP; I want to make video games and I believe C# would be more accommodating for a beginner to achieve such a task? I'm wondering if what I will learn about OOP in C# will … | |
I have a problem with refreshing the page layout. Since I have all the contents load in a div, when the page first loads it loads a default link into the content div. When the user clicks a link I want that page to be stored in a session variable($last_page), … | |
I've been spending a long time trying to figure this out but just can't. I've made a complete layout using CSS and XHTML; combining id styles with divs. I can't, for the life of me, figure out how to use the menu I've made to have the content of the … | |
I've been doing research on data structures but I just can't really wrap my head around what they are. I'm thinking classes, enums, structs are data structures; but then I also see linked lists and queus, etc that I don't understand either. Could anyone tell me what they are, what … | |
I'm working on a program to save and load character files for a text-based RPG. There are three slots to save to. I'm having the user enter whichever slot he wants to save to through inputting an integer. If the number is lower than 1 or higher than 3 I … | |
Re: Microsoft visual c++ express is what I use and it's pretty good, you can get it at [url]http://www.microsoft.com/express/Downloads/#2010-Visual-CPP[/url] along with SQL for your databasing needs :) | |
Re: You can mix PHP and SQL to create and access the database. Is that what you were asking? ![]() | |
Re: Most C++ books that you buy will have end-of-chapter tests or reviews that have a lot of problems for you to solve. You can get some books from your library or find some e-books and try the problems they give at the end of their chapters. | |
Re: It's powerful and complicated and a nice challenge. It supports dynamic memory allocation and leaves you in charge of everything. You can make whatever you want. It's also the standard for getting a job in a lot of computer systems jobs and game development. | |
Re: That means true. You're saying if it is not equal to zero, which is true. (variable==0) means while it is false or (variable==false) means while it is false | |
Okay. I created a program to create a character, and it uses a random number generator to initialize the Character classes strength and dexterity. Here's the character class constructor. Since the random number generator is based on time, both strength and dexterity have the same value when they're initialized. Is … | |
Re: Here are some sites I use to learn C++. They are very helpful I find. [url]http://www.learncpp.com/[/url] [url]http://www.cplusplus.com/doc/tutorial/[/url] [url]http://www.cprogramming.com/[/url] A good book is the Sam's Teach Yourself C++ in One Hour a Day if you could get it from your local library. DaniWeb is also a great place from what I've … | |
Hi. I'm trying to make a two-dimensional array full of descriptions. As if they were map tiles for a text-based RPG. There's a point class that holds your coordinates and I use the Get_X and Get_Y functions to put into the map so it can read them. I'm just starting … | |
Re: [QUOTE=Shaswat;1278583]consider: form id,username,age,etc if i enterid,all other fields should get automatically filled. can anyone suggest good sites for php,sql,etc[/QUOTE] [url]www.w3schools.com[/url] [url]www.tizag.com[/url] That's what I used to learn about PHP and mySQL. w3schools might be better for it because it shows them combined. |
The End.