|
That's a good link. If you're creating a new project in VS, be sure to follow steps 3 through 6 from here:
http://www.dreamincode.net/forums/showtopic49569.htm Farty: if you're using the convenience of the .NET library, you have to expect to pay the price of requiring dependency on it. There's also a hidden benefit here, which is that many programs can share the same DLL. If you're not using the .NET library, you don't have to require that dependency, but you have to know how to set up your project to do that. ![]() ![]() ![]() ![]() ![]() ![]() |
|
Overwin Winboat
|
Math helps you think around corners. If/then/or/and are pretty self-explanatory, no math required. If your school/whatever offers a computer science course, take it, since that also helps you think around corners. If it's the right course.
Other then that, it's just syntax memorization. I've had programming books, and no matter what anyone says, I've found them more comprehensible and helpful then the internet, though the internet is the best reference around for any programming language. I'd buy a book and see which way you learn better. |
|
Ok, some more questions:
Do I have to remember all of the syntax, or does it fill it in as I type? Dose spacing matter? Caps matter? This is some code on the one tutorial websites. ![]() ![]() ![]() ![]() ![]() ![]() ╔═══╦═══╦═══╦══╦═╦═══╦═══╦═══╦═╦═╦═══╦═══╗
╠═══╣....═╣..═..║........╠╗..╔╣..═..╠═══╬╗..╔╩╗..╔╬═══╣ ╚═══╩═╩═╩═══╩═╩══╩╩═╩╩═══╩═══╩╩═╩═╩═╩╩═══╝ |
|
Overwin Winboat
|
I don't actually have C experience, but from what I gather it's similar to PHP, so I'll answer anyway:
Memorize the syntax anyway, even if it helps you fill it in. You should be able to write what you want in notepad. In almost all cases, spacing doesn't matter. Caps probably matter. You can google it, but I'm pretty certain this family of languages is entirely reliant on caps. IE variable WoW != variable wOw. |
|
How do I make 3d buttons like in a web browser? When you hover over them there change color and when you click they depress. Is this just code or do I need to "draw" it out somewhere?
This goes double for the entire window. I saw most of FaRTy's programs. Nice stuff, but the Command Prompt box has to go. How would I create a custom window where I can choose where buttons are, what hot keys ( ctr + o = Open File / ctr + s = Save File ect... ) do and everything else? Am I getting ahead of myself? Is this stuff even too complex for a beginner to learn. Note: FaRTY's Programs ROX MEH SOX! ![]() ![]() ![]() ![]() ![]() ![]() ╔═══╦═══╦═══╦══╦═╦═══╦═══╦═══╦═╦═╦═══╦═══╗
╠═══╣....═╣..═..║........╠╗..╔╣..═..╠═══╬╗..╔╩╗..╔╬═══╣ ╚═══╩═╩═╩═══╩═╩══╩╩═╩╩═══╩═══╩╩═╩═╩═╩╩═══╝ |
|
I was afraid you were going to say that. What about his menus in StarCraft Downgrader? He has a specific amount of space for the menus and options ect... or is this also Graphics User Interface related? ![]() ![]() ![]() ![]() ![]() ![]() ╔═══╦═══╦═══╦══╦═╦═══╦═══╦═══╦═╦═╦═══╦═══╗
╠═══╣....═╣..═..║........╠╗..╔╣..═..╠═══╬╗..╔╩╗..╔╬═══╣ ╚═══╩═╩═╩═══╩═╩══╩╩═╩╩═══╩═══╩╩═╩═╩═╩╩═══╝ |
|
I paid eleven minerals for THIS?
|
Definitely getting ahead of yourself. If you learn GUI for real, you're going to have to probably end up manually positioning everything on the window, which gets to be quite a bitch when it comes to font metrics and such. Start with programs that execute from the command line, as they are simplest. To be really simple, start with programs that don't really 'do' anything -- meaning they require no user input.
To answer a few questions.. Do I have to remember all of the syntax, or does it fill it in as I type? It depends on your IDE (Interactive Development Environment). Most modern IDEs contain an autocomplete feature to speed up your programming. I tend to rely on this rather than memorizing every method in the API and also to catch my syntax errors (sort of like I rely on spell check to stop me from typing messily). You can write any real language using any text editor, and you should certainly know basic control syntax and library methods from memory. Dows spacing matter? No. In all standard languages, the compiler will ignore any and all extra spaces and linebreaks. You still need to separate words with at least one space. Note that a few rare exceptions, such as the Python programming language, will parse line breaks and tabs as part of the syntax. Caps matter? Yes, pretty much all compilers are case-sensitive. It's clearly a little late, but my personal suggestion for a language would have been Java. Much more than C++ it forces you to code in an organized style, and provides a much better introduction to object-oriented programming than any other language. Java is taking over as the language of choice for many lower-level and even higher-quality college-level computer science courses (for example, it is Carnegie Mellon's biggest undergraduate language), as well as being the one and only standard for the Advanced Placement exam in Computer Science. Almost all the tenets of syntax and style transfer easily between languages, however, so whatever you start with should prepare you well for other languages. ![]() ![]() ![]() ![]() ![]() ![]() "Three can keep a secret, if two are dead." -Benjamin Franklin
"Had, having, and in quest to have, extreme; A bliss in proof, and proved, a very woe; Before, a joy proposed; behind, a dream. All this the world well knows; yet none knows well To shun the heaven that leads men to this hell." -William Shakespeare |
|
Too late for that. I have already downloaded everything I need, and I am just waiting for the damn thing to install before 10pm <-isn't going to happen
I will post more questions tomorrow or as needed. Thanks for the help. :-) ![]() ![]() ![]() ![]() ![]() ![]() ╔═══╦═══╦═══╦══╦═╦═══╦═══╦═══╦═╦═╦═══╦═══╗
╠═══╣....═╣..═..║........╠╗..╔╣..═..╠═══╬╗..╔╩╗..╔╬═══╣ ╚═══╩═╩═╩═══╩═╩══╩╩═╩╩═══╩═══╩╩═╩═╩═╩╩═══╝ |
|
Don't select any of those, you don't need them. Then click next, it'll download and install VS C++ Express 2008 for you.
The cplusplus.com tutorial is pretty good I think, so it would be a good idea to start there. When you start out, I suggest you pick empty project as project template, it'll make your life easier until you get better. Then you can go on to more specific templates, although I don't recommend doing CLR or Windows Forms projects in C++ at all (MS modified C++ a bit to work with .Net, and it's not pretty at all and very confusing). ![]() ![]() ![]() ![]() ![]() ![]() |
|
VS 6.0 BLOWS. The for-loop scope problem makes writing any kind of portable code impossible. By "removing the .h" do you mean for the standard library files? It's supposed to be like that. Intellisense has improved drastically with each new version of Visual Studio.
BrontoByte: learning GUI (windows, buttons, etc) programming and learning the basics of programming are two very different things, unfortunately. If you're interested in a career in computer science then you need to learn the fundamentals. If you just want to create some cool programs, then it's not actually that hard to just jump into GUI development. But if that's what you want, I'd recommend using C# and windows forms 2.0 - not C++ and definitely not raw Win32 API. This post was edited 1 time, last edit by Heimdal: May 21 2008, 5:02 pm.
![]() ![]() ![]() ![]() ![]() ![]() |
|
Clan [V]iral
|
To start, you should first spend 4 days writing an amazing storyline to an MMORPG. Then program the MMORPG.
MMORPGs are the easiest to make. (Turn on your sarcasm detectors.) Seriously though, definantly start with small programs. Also, I wouldn't start with C++ if I were you. IMHO it would be better to start with Java, Java is more strict in coding and helps you to build better habits. Bad habits can easily be formed when you start with C++. Remeber to comment all your code so you can go back to it later and understand what it all means. (Yes, its very easy to get lost in your own code with bad habits/documentation) There are many books on programming, I recommend picking one up and starting there. Some of them even come with Free SDK's, Compilers, or IDE's. ![]() ![]() ![]() ![]() ![]() ![]() |