• OTHER C++ tuts?
    141 replies, posted
I tried [url]http://www.cprogramming.com/tutorial.html#c++tutorial[/url] but it like assumes you already know [i]everything[/i] about C++ already in even its beginner tutorials. [editline]05:37PM[/editline] oooo this looks kinda sexy and it explains most commands separately (not explaining 20 commands in 1 sentence like cprogramming.com) [url]http://www.cplusplus.com/doc/tutorial/program_structure/[/url]
Get a book, you won't learn from sites like that.
Also, what do I use to run it? Because I use a compile; that, when I click compile and run for say [code] #include <iostream> using namespace std; int main () { cout << "Hello World! "; cout << "I'm a C++ program"; return 0; } [/code] It flashes cmd.exe then does nothing. [editline]05:44PM[/editline] [QUOTE=BrokenGlass;16248407]Get a book, you won't learn from sites like that.[/QUOTE] emkay
download Code::Blocks with the MinGW compiler
[QUOTE=Anti-Flag;16248408]It flashes cmd.exe then does nothing.[/QUOTE] All the program does is print two messages then close...I'm not sure what you were expecting :/
[QUOTE=Anti-Flag;16248408]Also, what do I use to run it? Because I use a compile; that, when I click compile and run for say It flashes cmd.exe then does nothing.[/QUOTE] It's running then, but programs terminate when they have no more instructions to run. Try putting a cin.get or something at the end. [url]http://minich.com/education/wyo/cplusplus/cplusplusch10/getfunction.htm[/url]
[QUOTE=Anti-Flag;16248408]Also, what do I use to run it? Because I use a compile; that, when I click compile and run for say [code] #include <iostream> using namespace std; int main () { cout << "Hello World! "; cout << "I'm a C++ program"; return 0; } [/code] It flashes cmd.exe then does nothing. [editline]05:44PM[/editline] emkay[/QUOTE] A C++ program ends when the program reaches the end of main (the "return 0;" line). If you want it to wait for a keypress at the end of the program, insert this line before "return 0;": [code]cin.get();[/code] That actually returns a character taken from the console, but you don't want to do anything with it, you just want the program to continue when the call to cin.get returns.
[QUOTE=Klownox;16248462]download Code::Blocks with the MinGW compiler[/QUOTE] [quote]"FirstC++ - Debug" uses an invalid compiler. Skipping... Nothing to be done. [/quote] :/
Ah snip, didn't know it was that site. Cplusplus.com is much better.
[quote=ja_cop;16248501]a c++ program ends when the program reaches the end of main (the "return 0;" line). If you want it to wait for a keypress at the end of the program, insert this line before "return 0;": [code]cin.get();[/code] that actually returns a character taken from the console, but you don't want to do anything with it, you just want the program to continue when the call to cin.get returns.[/quote] iloveu
[url]http://www.youtube.com/watch?v=tyVhn0FWWB4[/url] Watch those, he's really good at explaining everything, you might want to skip to tutorial 10 or so.
[QUOTE=PieClock;16249547][url]http://www.youtube.com/watch?v=tyVhn0FWWB4[/url] Watch those, he's really good at explaining everything, you might want to skip to tutorial 10 or so.[/QUOTE] I also recommend antiRTFM
I also recommend a book.
[QUOTE=BrokenGlass;16249707]I also recommend a book.[/QUOTE] Don't be a dick. It's another option for him which is far easier than reading walls of text if he doesn't want to buy a book.
The Internet is a better resource than books. Stop being close-minded.
[QUOTE=Klownox;16250469]The Internet is a better resource than books. Stop being close-minded.[/QUOTE] yea man those c++ vids are so much better than a book, so is cplusplus.com!
[QUOTE=BrokenGlass;16250543]yea man those c++ vids are so much better than a book, so is cplusplus.com![/QUOTE] I didn't say those specific places. But, on the whole, the Internet is a better resource. Obviously you think so too, or else you wouldn't be posting in a programming forum, where people give each other advice. So, I'm going to stop feeding you, as I see now, that the signs warn me against it, good sir. Have a nice day, and don't bite the other passersby. [editline]08:32PM[/editline] In case you don't understand: I'm calling you a troll.
[QUOTE=PieClock;16250083]Don't be a dick. It's another option for him which is far easier than reading walls of text if he doesn't want to buy a book.[/QUOTE] Plus I haven't read a real book in a while so intranetx makes it easier :) [editline]07:50PM[/editline] [QUOTE=Klownox;16250970]I didn't say those specific places. But, on the whole, the Internet is a better resource. Obviously you think so too, or else you wouldn't be posting in a programming forum, where people give each other advice. So, I'm going to stop feeding you, as I see now, that the signs warn me against it, good sir. Have a nice day, and don't bite the other passersby. [editline]08:32PM[/editline] In case you don't understand: I'm calling you a troll.[/QUOTE] I got just the image :) [img]http://stellarspectral.com/memes/trlht.jpg[/img] [editline]08:07PM[/editline] Apparently he gets off on rating people dumb :P
He's over-compensating. It's common habit. To contribute, here's a rather in depth looking one: [url]http://www.java2s.com/Tutorial/Cpp/CatalogCpp.htm[/url]
[QUOTE=Anti-Flag;16251243]Plus I haven't read a real book in a while so intranetx makes it easier :) [editline]07:50PM[/editline] I got just the image :) [img]http://stellarspectral.com/memes/trlht.jpg[/img] [editline]08:07PM[/editline] Apparently he gets off on rating people dumb :P[/QUOTE] way to treat someone who gave you the [b]real[/b] advice. using namespace std; ftw.
I would also recommend a book so that you don't have to keep jumping from site to site.
Books can be nice, but I'd just download the tutorial.
Use [i]both[/i]. God..
Why pay for what you don't need to?
[QUOTE=Klownox;16253968]Why pay for what you don't need to?[/QUOTE] get out please. internet tutorials can't explain things in depth like a book can. cheap fuck.
Explain how? Also: rating yourself agree, and me dumb != ePeen
[QUOTE=Klownox;16254687]Explain how? Also: rating yourself agree, and me dumb != ePeen[/QUOTE] i just fucking told you how, are you stupid?
[QUOTE=Klownox;16253968]Why pay for what you don't need to?[/QUOTE] How many pages is a C++ tutorial on the Internet? How many pages is a C++ book?
[QUOTE=PvtCupcakes;16255136]How many pages is a C++ tutorial on the Internet? How many pages is a C++ book?[/QUOTE] Are you stupid? A book maybe 200-400 pages, the internet; 10000000000000000000000000000000+ pages. He was telling you that and yet you are saying no and yes at the same time :confused:
[url]http://www.odioworks.com/download/TICPP-2nd-ed-Vol-one.zip[/url] [b]This is a full legally free C++ book, 800+ pages[/b] (main page [url]http://mindview.net/Books/TICPP/ThinkingInCPP2e.html[/url] )
Sorry, you need to Log In to post a reply to this thread.