Check your knowledge with fun about fine arts4.07 / 5.00 3,431 Views
Control bullets with your mind4.03 / 5.00 15,015 Views
Unlock and upgrade vehicles and drive your way through zombie hordes in order to escape.3.83 / 5.00 18,187 Views
Your one-topic stop for everything C/C++ related. Feel free to create tutorials and suggest topics. For now I'll split the headings up as follows:
If you create a C++: main tutorial please link back to this topic, page 99999. Format your topic title as such:
Since C/C++ share many similarities please indicate at the top of your tutorial if the following code can be applied to just C++ or C AND C++. If you're not sure if your tutorial is applicable to C you can leave it out. If you wish to write a C tutorial then it will go in the C-only section. The C-Only section may or may not change depending on popularity. Also when you create a tutorial post here with a link to that tutorial so that it can be added to the list.
This topic is to be used for adding new tutorials and suggesting them. Please try to limit actual C++ discussion to the topics themselves.
I'll start small and do one of declarations of variables, the space they take up and the limitations on their uses. I WILL include <strings>
Perpetually looking for time to return to the arts.
Someone should write a tutorial on where to get started as I'm not exactly sure how you get started with this language. What programs you use to write it, or any of that. If someone writes a tutorial I might start with C++ or C.
At 2/18/06 06:22 AM, -liam- wrote: Argh, kinda forgot to close a b tag at the end there..
Not very good. I like the tone and how it was laid out in an informal way but I dont think it really teached much about C++. I think you need to create a few follow up threads in order to make it good.
Also I was thinking about a couple of changes we could possibly make to C++:Main itself. We need a notepad version of the list (a link to one). We could have a useful links section. These are both stolen from AS:Main but these would still be useful. Also we could have something (either a link to a page or on the thread itself) where has a list of tutorials in a linear order so that the readers know what they need to know before learning something. For example the first thing in the list would be -liams- beginning tutorial (getting a compiler basicaly) then something about variables then something about data types then structures etc etc so that is in an order in which someone can pick up and read from beginning to end. (Just a thought let me know what you think).
Also I am really looking forward to Delta and Johnny-whatever's tutorials. I would make one but I dont think i'm a confident enough C++ programmer yet. Maybe I'll make something about loops even though it would apply to pretty much all programming languages :P
- Matt, Rustyarcade.com
At 2/18/06 08:10 AM, Ninja-Chicken wrote: Not very good. I like the tone and how it was laid out in an informal way but I dont think it really teached much about C++. I think you need to create a few follow up threads in order to make it good.
Of course you need follow up threads, that was an introduction into programming with C++ - I'm not going to go into any specifics with code because that is for specific tutorials. That's why it didn't teach much about C++, because it was introducing it.
Sup, bitches :)
C++: Getting Started by -Liam-
also, liam, you forgot to link back to page 9999 in yours
At 2/18/06 01:19 PM, Afro_Ninja wrote: Ok, links to free compilers?
I know of bloodshed C++, that's all
Minimalist distro of gcc. DevCPP comes with Mingw as the compiler.
Fucking strict, but awesome. Used to be the industry standard. The IDE is pretty cool too.
GNU C Compiler. Uses gay AT&T assembly syntax. __asm is also a function call, which is just ridiculus.
Microsoft Visual C++ Express Edition
Free hobby edition of Visual C++. Pretty shitty to be honest. Microsoft have depreciated virtually all C/++ functions. Nice IDE.
The shizit. Fast as fuck and twice as pretty. No IDE.
If you're on windows and want a free compiler, I recommend either MinGW or the Microsoft Visual C++ 2003 Toolkit.
If you go for the toolkit, be sure to ALSO download the platform SDK, as it has everything you need. When you install the sdk just be sure to copy things like binaries/includes/libs into the Visual C++ 2003 toolkit folder, it's a pretty good compiler and the platform SDK is free and has absolutely _everything_ you could need for windows development.
A good feature of mingw that some cross-operating system programmers might like is the fact that it is is a cross compiler, if you're on linux, and you've installed everything mingw needs, you can do a /path/to/mingw/gcc -mwindows test.c and it'll compile it as a windows application.
my linked list page is 2 BBS posts so far
ive just finished on adding items
i have a simple theory behind it with a diagram of its structure
then detailed commenting and explanations of code for
an overloaded  with one parameter for acessing the 'n'th item in list
push() //for adding an item to end
push(num) //for adding 'num' number of items to end
unshift() // for adding an item at start
unshift(num) // for adding 'num' number of items at start
splice(pos) // for adding an item at 'pos'
splice(pos,num)// for adding 'num' number of items at 'pos'
i also have it in a class named Array (go Flash!) with a length variable for the current number of items in the list
now i need to do deletion of items (which will also change the splice functions)
to splice(pos,deletenum,createnum) so that its used for deleting and adding (like in flash)
lol at my diagram, that is to show the structure of a linked list
i even have a hint of directives for defining NULL as 0 if it isnt already defined
at the end im going to have a bit on how the thing as a whole can be improved
i.e. having not just a pointer to the first item in class, but also to the last pointer, and second last pointer
and then a bit on using the linked list
(like getting around its disadvantage of slow random access when you are just looping through the whole thing)
then maybe a bit on other operations like sorting and reversing :p looong tut
i think at the end ill just link to my class with all the functions
Post this here then? =/
To start with, what do you want to use C/C++ for anyway?
If you want to start writing games, you're definately a far cry away from that. However, it wouldn't hurt to start now because it will take you time to learn anyway.
Game design/programming - To begin there have been a lot of suggestions by people, and the ones I consider reliable are real game programmers. From what GameDev.net, as well as a few programmers from Blizzard Entertainment have told me. They say your better off by just learning C++, mainly because that is the primary language for the graphical libs; DirectX, OpenGL, etc. However, it is true that C++ is a superset of C.
But lets get the party started by sharing a few very good C/C++ sites with extremely useful tutorials:
The C Programming Language - Kernighan and Ritchie - Amazon.com - Google
The C++ Programming Language - Stroustrup - Amazon.com -
Starting Out With C++: Standard Version - Gaddis - Amazon.com -
[Newbie/No Programming Experience]
www.cprogramming.com -- Most commonly posted site for tutorials, decent in my opinion. It gives you a very quick and broad overview of the language.
www.cplusplus.com -- Decent beginners tutorials. However, like most books they use a lot of computer terms.
http://nehe.gamedev.net/ -- Extremely well written OpenGL tutorials, and highly linked to.
-- Once you've learned to program, you should start developing a good programming style so other programmers dont have to decode what you're trying to say. I agree with 80% of this document, so just use it as a guideline.
http://mindprod.com/jgloss/unmain.html -- Programming as a profession? Want to keep your job? This documentation will help you write unmaintainable code, so if they fire you. They will have one hell of a time trying to figure out your code.
I'm your average Afro-American fetus. For example: I enjoy basketball, I'm rather good when I play too, but I'm much too busy scratching my horrific cracked skin these days.
So post the tutorials in this post/off site and link or make a whole new thread about it? Which one is more convenient for this C++ Main thing?
At 2/19/06 01:42 AM, 0x41 wrote: So post the tutorials in this post/off site and link or make a whole new thread about it? Which one is more convenient for this C++ Main thing?
like the flash forum AS:Main
For each tutorial you make a new thread in the programming forum labeled
C++: Tutorial Tite for example C++: Directives
At the top of each thread you link back to this thread (but not to this page, you link to page 99999 so that it always goes to the last and most updated page of this thread)
If other tutorials exist that are related you link to them, like in the one im making i have a rewuirements saying you need knowledge of structures and pointers and OOP, if other tutorials on them exist, i would link to them
As this approaches page 2 I'm going to go and delete some of the less important posts in this thread in hopes that we have more than one tutorial to start off page 2 with : )
At 2/19/06 12:44 PM, Afro_Ninja wrote: As this approaches page 2 I'm going to go and delete some of the less important posts in this thread in hopes that we have more than one tutorial to start off page 2 with : )
well im half way through my linked list one
At 2/19/06 01:56 PM, Pilot-Doofy wrote: Is there really enough C/C++ chat to create one of these? I think we barely have enough for a PHP Main.
I think it is a great idea. But I do agree there might not be enough chat. Also, I really like Java. What if you combine C++ main with Java, and call it something like : C++, Java Main?
It's just an idea, because I'd like to see someone make a Java main, or combine it with this.
C++: File I/O by Cyrax88
C++: Hooking by dave
C++: 3D Camera by Glaiel_Gamer
At 3/12/06 04:08 AM, Afro_Ninja wrote: Writing Un-maintainable code?
Why is there a link in there that shows people how to write code that is un-maintainable?I don't really think that should be there.