Jump to content
xisto Community

dexter

Members
  • Content Count

    142
  • Joined

  • Last visited

Everything posted by dexter

  1. Borland C++ 5.02 OpenGL Programming That's what my searching came up with. I'm afraid I can't help any further in regards to Borland. Though, if you do have a choice in compiler/IDE, then Dev-C++ IDE with the MingW g++ compiler has a simple system for setting up OpenGL. Basically, install the IDE, then go to the menu to add packages and find the OpenGL package. It is possible that NeHe's OpenGL site has some info on that sort of thing.
  2. Out of interest... does no-one buy text books for their studies, or even hit their university libraries? Does your uni even provide recommended readings or some sort of study materials? Just something I've been wondering because I'm stunned by the number of people that ask the same question.On topic, though, most of those links seem ok. Just googling for C++ tutorial will provide a million and one links anyway.
  3. The problem is the way you constructed your if statement. This: // The parentheses are not needed around the strings. // They do nothing, nor even make it more readable.if(subDesc = strstr("Slazenger Classic Racquet", "Slazenger") != NULL) Is exactly the same as saying: if(subDesc = (strstr("Slazenger Classic Racquet", "Slazenger") != NULL)) Currently it is trying to assign to subDesc whether or not the return of strstr is equal to NULL. This doesn't fly. This is because assignments have the last priority. A correct way of constructing that assignment would be: if((subDesc = strstr("Slazenger Classic Racquet", "Slazenger")) != NULL) Whenever you use assignment in an if statement -always- wrap the assignment part in parentheses before doing the comparison.
  4. Here is an excellent article about C++. It says everything (and more) I wanted to say about the language. C++ in the Real World
  5. That is for starting programmers and average programmers. Like I said before, the need for -excellent- programmers is high. Which is why you need to put a lot of effort in becoming good at what you do. Heh. The industry has become a lot more standards orientated since then. You'll find that those sort of jumps will occur over much longer periods of time given the amount of people that also have to make the change.
  6. It's really a no-brainer. Just about all "Christian" holidays are just modifications of older pagan holidays. Christmas is based on a Roman holiday around the same time of year where they would give little idols and such to each other. A holiday at easter time has been celebrated since the Egyptians. As for Halloween, I live in Australia like FuChelle... I really the whole idea is ridiculous. In fact, I abuse people who think it'd be cool to do Halloween.Speaking of which... it's about that time, isn't it?
  7. I'd say find something you're interested in, research it, and learn how to code it. The best way to learn is to practice, and it helps when it is on something you are interested in.
  8. Okay, there is no arugment about the best language for coding games. C++ wins every time. And in terms of college, kvarn, you will not master it at college. It is in the hours of projects and experiments (and probably real experience) that you will master it. The idea of college is to teach you a broad range of building blocks on which you can quickly add to when you get out into the real world.
  9. Bah, looks like I half started two different thoughts and missed finishing them. I do apologise for the double post.Anyway, in the jobs section, I was starting to say that I was going down the research type path, since in my time at university, this is what stood out to me as what I would like to do. Currently my big interest is in evolutionary algorithms, neural networks and other such stuff (especially optimization problems). And the way things are going, I could be looking down the barrel of an academic position researching these sorts of things.And the unfinished thing about C++ was that a lot of educational institutions find students have difficulty learning C++. But like everything in the computer science world: everyone blames different things (the language, student's aptitude, student's motivation, etc...). I still stand by what I said, though, if you can master C++ it won't be difficult to move on to other languages.
  10. Well, I'm impressed. The majority of young people that are interested in and starting programming all want to be games developers. And yeah, games development isn't the greatest thing to do as a programmer. In my opinion, anyway . And yeah, family tend to have difficulty understanding the urge sit and code. Especially when you're in the midst of learning the basics of the language and all you've got to show is some text printed to the screen . Jobs Jobs for programmers are everywhere. Most larger companies use software that is developed in-house, so they have an IT department which handles the creation and maintenance of that software. Then there are companies that specialise in writing specific software for companies. The majority of the software ever written you will never hear or see in your lifetime. Not only that, but more and more things are requiring programmers. Mobile phones now run their own operating systems. Automatic bank tellers, checkouts at stores. Then you have these "smart" fridges, dishwashers and cars. Then there is also the possibility of research, whether it be for a university or with Google, someone has to design tomorrow's technologies. I personally am going down this So yeah, there are a lot more job opportunites (and more awesome things) out there than games development. There are even more if you are a -good- programmer. Languages C++: Pour your heart and soul into this before you even look at Java. If you can program well in C++ then you'll be more than able to program well in other languages. It combines both the structured and object-orientated paradigms. Because it is derived from C, it is a lot closer to the system. C++ is used for all sorts of applications, from really low-level system tools to GUI based apps. A very flexible language. That said, C++ is one of the more difficult languages to master. A lot of educational institutions have difficulty with students C: Also a must learn, but easy to pick up on how it differs once you've learnt C++. A system level language, operating systems are generally writting in C and Assembly. Compilers also seem to be written in C more than anything else. That said, it is quite possible to write GUI apps in C, it just doesn't provide the object-orientated facilities that C++ does. Java: This language is purely object orientated and platform independent. Fantastic for programs to be run straight of web pages as applets, and excellent for writing GUI apps. When you get there, use Eclipse as an IDE, very impressive. For all its benefits, I'm violently opposed to it being taught as a first programming language (let me know if you want me to go into more detail if I haven't bored you already ). VB: Most anything you can do with pure VB (not the stuff you use inside Access), you can do better and faster in Java. For the point and click GUI building, there are a number of tools available for Java (a plugin for Eclipse, NetBeans). PHP: Used for server-side applications and dynamic web content. Good if you're into that sort of thing. With that all said and done, language preferences are argued about by the "experts". Everyone feels slightly differently. Some have had better or worse experiences. I for instance, cut my teeth on C++, and prefer using it as it feels more natural to me. Other people might find other languages preferable. The other thing with languages is that they all are better at doing certain specific things. Just like Java and GUIs, C and OSs. Mixing and matching languages is also a good thing. Erk, looks like I've gotten a little overexcited . I tend to do that when I get talking about programming. I love this stuff so let me know if I've missed anything, or you aren't actually bored and have more questions. Cheers.
  11. # Nessus - OS vulnerability scanner. Huge database of vulnerabilities. http://www.tenable.com/products/nessus-vulnerability-scanner
  12. This site has some interesting implementation ideas for graph structures. One thing to note is that they build it from previous objects on the page, so it won't be perfect as-is, and somewhat obfuscated: Data Structures and Algorithms with Object-Oriented Design Patterns in C++ There are a -lot- of websites around with info about graphs, 'directed graph structure C++' in google brings up a lot of results. I also found Sedgewick's 'Algorithms in C++' very useful, too, if you can get your hands on it. I'm going to start a new thread with some more details here.
  13. On off-shoot of another topic: This site has some interesting implementation ideas for graph structures. One thing to note is that they build it from previous objects on the page, so it won't be perfect as-is, and somewhat obfuscated: Data Structures and Algorithms with Object-Oriented Design Patterns in C++ There are a -lot- of websites around with info about graphs, 'directed graph structure C++' in google brings up a lot of results. I also found Sedgewick's 'Algorithms in C++' very useful, too, if you can get your hands on it. With the graph representation, it looks like you've taken the linked list approach. In my particular implementation, I had an array of vertices(nodes) and an array of edges(links). A vertex containing specific information about that location, and an edge as two references of two nodes specifying a link from one node to another. Although, you could always go down the path of representing the graph as a matrix. The other thing to take note of is that an undirected graph can also be represented by a directed graph. Heh, this aggravated me for weeks while I was trying to find the perfect way to implement it. Out of interest, define 'school'... it seems like a rather advanced topic.
  14. Woah. You have to code a simulation of a mesh network in C++? Sounds to me like you're going to have to develop a graph structure to be able to deal with that.It's a bit off-topic for this thread, though, you might want to start a new one and I'd certainly be interested to discuss it. Anyway, in the meantime, I'll go and find some pages that I found really handy when I was doing pathfinding and had to build an undirected graph to store the nodes and their paths.
  15. I'm almost offended to think that I'd need one... however for you benefit... *($^$#(#*$#&$*@#*$#. Thank you.
  16. I absolutely loathe the Crazy Frog, and Jamster too, who seems to promote it incessantly. I've got their website blocked on my router... Weird trivia. In Australia, the frog is censored in its nether regions on TV.
  17. dexter - 1 + 3 + 0 = 4 + 0 = 4 Game chance number is: 4
  18. Erm, since this is the C/C++ programming section, it is presumed that the question is in regards to programming for *NIX using C/C++. I've actually answered this question elsewhere (a thing about good programming books, with a description, estimated difficulty level, etc.). So, to answer your question here are two I would specifically recommend for programming in a *NIX environment. The second book is more specialised, but does involve a little more than just network programming. The first is an absolute MUST. UNIX system programming : a programmer's guide to software development / 1999 / Keith Haviland, Dina Gray, Ben Salama. / Advanced+ This is a more complicated book, based in C, that starts with the basic system calls, fork(), exec(), etc, and moves onto more advanced topics such as IPC, network calls, shared memory, and a whole lot more that I haven't even had a chance to touch on yet. Very, very good book for *NIX programmers. UNIX network programming / 1990 / W. Richard Stevens. / Advanced+ An older book about network programming. Some parts are not as commonly used today, but others are still as pertinent to network programming today as it was then. A good read. In addition to those books, man pages are extremely useful. Use them a lot. Web pages: Ju Rao's Computer Books -- This page has incredible amounts of books about everything. There's quite a few links to books about *NIX programming here. Here are a few links to some of the books on the page above. I'm sure there's a lot more, but these stood out. Advance Linux Programming UNIX System Calls and Subroutines using C As I said, there's a heck of a lot more around than that, but that's enough to get you started. Google is also invaluable. Anyway, good luck with your coding, and be sure to start up some convos here if anything stumps you.
  19. The ban was lifted ages ago. And it was there because the government couldn't tell the difference between general games and those used for online gambling (which were banned before then).Nothing to do with grudges or what not... just plain and simple ignorance.
  20. Sorry for the triple post...I've just discovered that this is old, old news (2002).... Anyone know if the ban was lifted or what?
  21. Give me an edit button. 10 seconds later I see this: What a terrible mis-managed government. A decision like the makes me almost as upset as I was about the Grokster vs. MGM result (another sad day for the IT industry).
  22. That's interesting. Anyone actually from Greece that knows the reasoning behind this? If one is to ban electronic games, why not all games? What makes games in an electronic form worse than those that aren't?Apparantly online chess is banned. What makes that any different from normal chess? I say throw everyone who plays games in jail.
  23. Not quite. Some are, others are niche languages that aren't as well known.
  24. This is not so much a question, actually, but a bit of a plug for an interesting tool I've discovered recently. Anyway. How does everyone else document their code? Are in-source comments sufficient? Do you write extra detailed documentation outside of the code? Or do you generate external documentation from the code? Since I've been doing Java recently, I was in awe when I discovered javadoc. An incredible tool that allows you to generate external documentation for your code from your comments in-source. The syntax is reasonably simple, allowing the comments to be readable in and out of the source code. And so, I set off in search for a similar tool for C/C++. And what do I find? Doxygen. Incredible. I've already gone through and re-commented some of my reasonably completed code to include this style of commenting. Fantastic results. Instead of text documents laid out the best I can, this tool can generate all the documentation from the code in a few different styles (HTML, LaTeX, man, etc.). Mind you, doxygen can handle: Support for more languages is on the way. Also, the code has been re-worked to make it easy for developers to add support for different languages. I seriously am never going to write external documentation for my code ever again. And an additional question to the ones I asked above, if you do generate the code with a tool similar tool to this, what tool do you use? I'm done plugging. Off to go re-document some more code...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.