
-----------------------------------
omni
Wed Sep 08, 2004 7:15 pm

wow, self teaching C++ is hard...
-----------------------------------
I am trying to self teach my self C++. I've downloaded tutorials and stuff and I have Dev C++ for my IDE. C++ is a change from Turing and the 2 other languages I know (TI-Basic and TI_ASM for TI-83plus). 

Question: I dont know how to start. I need some sort of first program to make. What can I do with only the standard C++ libraries?

-----------------------------------
Genesis
Wed Sep 08, 2004 9:57 pm


-----------------------------------
I don't know much about C++, but if you're learning it, try checking out your local library (like the builidng full of books) for programming books.

My city's library sucks, but it's got tons of programming books. Plenty on C++. Most books do a good job starting you off, and then tutorials and such are a big help. That's how I learned Java.

Good luck!

-----------------------------------
Dan
Wed Sep 08, 2004 10:23 pm


-----------------------------------
Well if u know turing and did that in hs, and u whont some things to do to try to learn/test your slef at C++ why not use some of the turing asments u had/have and do them in C++. Or remake some of your turing stuff in C++.

Althougth the graficks whould be a problem with just the standered libs.

-----------------------------------
Andy
Wed Sep 08, 2004 10:24 pm


-----------------------------------
the hardest transition is the oop, other than that, learn the syntax in a week and u'll be fine

-----------------------------------
wtd
Thu Sep 09, 2004 1:47 am


-----------------------------------
Make sure you're learning C++.  Lots of places teach "C/C++", which isn't actually a programming language.  They often consider C++ to be "C with classes."  C++ is much more complex and powerful than that, and acknowledging the truth of its nature is the first step in mastering it.

-----------------------------------
omni
Thu Sep 09, 2004 1:20 pm


-----------------------------------
yeah, i thought about re-making my old turing programs, BUT the graphics are a problem. There aren't any standard graphics libraries, which SUCKs.

-----------------------------------
AsianSensation
Thu Sep 09, 2004 3:22 pm


-----------------------------------
well, there are standard graphic libraries. Technically speaking, MFC is "standard", since M$ made it.

-----------------------------------
wtd
Thu Sep 09, 2004 4:34 pm


-----------------------------------
well, there are standard graphic libraries. Technically speaking, MFC is "standard", since M$ made it.

No, it's not.

-----------------------------------
rizzix
Thu Sep 09, 2004 4:52 pm


-----------------------------------
yep not even close to standard. hmm there are technically no libraries with C++. its a standalone language unlike a lot of other languages. but there is the standard template library. that usualy comes with most compilers.

-----------------------------------
AsianSensation
Thu Sep 09, 2004 7:05 pm


-----------------------------------
fo' real?

I always thought that MFC was standard microsoft classes? Or are there some other reasons that it's called Microsoft Foundation Classes?

Or is it because MFC was related with Visual C++? Am I just having C++ and Visual C++ confused or something?

-----------------------------------
wtd
Thu Sep 09, 2004 7:35 pm


-----------------------------------
fo' real?

I always thought that MFC was standard microsoft classes? Or are there some other reasons that it's called Microsoft Foundation Classes?

Or is it because MFC was related with Visual C++? Am I just having C++ and Visual C++ confused or something?

There is C++, and Microsoft created a bunch of libraries in C++ which they bundled together and called MFC, and they include this all with a product they call Visual C++.

Visual C++ is not a language.  It's a (bad, expensive) compiler for C++.  Many of Microsoft's own libraries take advantage of the flaws and nonstandard eccentricities in Visual C++, thus tying them to that compiler.

-----------------------------------
omni
Thu Sep 09, 2004 7:41 pm


-----------------------------------
o yeah, if I just have a basic C++ program:

#include 
int main ()
{
  cout >hold;


or you could use the un-portable (and possibly dangerous)


system("PAUSE");


-----------------------------------
omni
Thu Sep 09, 2004 7:55 pm


-----------------------------------
Whats STD stand for (aside from sexually transmitted disease, haha)?

-----------------------------------
Dan
Thu Sep 09, 2004 7:59 pm


-----------------------------------
well, there are standard graphic libraries. Technically speaking, MFC is "standard", since M$ made it.

No, it's not.

Thanks for saving me a rant ;)


or you could use the un-portable (and possibly dangerous)

Code:

system("PAUSE");


Ahhhhhhhhh, ya that is evil. It is up there with goto. Uhsely there is a option in the IDE (if u are using one) that lets u make it keep the window open.

-----------------------------------
wtd
Thu Sep 09, 2004 10:48 pm


-----------------------------------
Whats STD stand for (aside from sexually transmitted disease, haha)?

It's a shortened version of standard, as in standard namespace.

-----------------------------------
wtd
Thu Sep 09, 2004 11:13 pm


-----------------------------------
yep not even close to standard. hmm there are technically no libraries with C++. its a standalone language unlike a lot of other languages. but there is the standard template library. that usualy comes with most compilers.

There actually is a standard library for C++.  The STL is part of it, but isn't the whole thing.

Things like string, iostream, fstream, etc.

Other languages do have more extensive included libraries, but C++ does have a standard library that covers the basics pretty well, especially when paired with the STL.  It should be noted that those languages have both libraries and a "core language".  Java could be paired with an entirely different set of libraries, for instance.

-----------------------------------
omni
Fri Sep 10, 2004 8:58 pm


-----------------------------------
could soemone explain how to open files? Which file to you have to include.. ifstream, ofstream, fstream ??? How to read from files, display contents of files etc.. 
I find my tutorial confusing, or maybe i'm just tired.

-----------------------------------
wtd
Sat Sep 11, 2004 12:01 am


-----------------------------------
#include 
#include 

int main()
{
   ifstream input_file("Input.txt");
   ofstream output_file("output.dat");

   output_file  input;
}

-----------------------------------
omni
Wed Sep 15, 2004 7:52 pm


-----------------------------------
I have this program:
#include  
#include 

int main() 
{ 
  char ch;
  while(1){
      if (kbhit()){
      ch=getch();
      cout 