Click here to Skip to main content
16,016,789 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: C++ and Python Questions... Pin
Raistlfiren14-Aug-05 19:24
Raistlfiren14-Aug-05 19:24 
GeneralRe: C++ and Python Questions... Pin
Christian Graus14-Aug-05 19:35
protectorChristian Graus14-Aug-05 19:35 
GeneralRe: C++ and Python Questions... Pin
Christian Graus14-Aug-05 19:43
protectorChristian Graus14-Aug-05 19:43 
GeneralRe: C++ and Python Questions... Pin
Raistlfiren14-Aug-05 20:28
Raistlfiren14-Aug-05 20:28 
GeneralRe: C++ and Python Questions... Pin
Kevin McFarlane15-Aug-05 0:00
Kevin McFarlane15-Aug-05 0:00 
GeneralRe: C++ and Python Questions... Pin
markkuk15-Aug-05 1:52
markkuk15-Aug-05 1:52 
GeneralRe: C++ and Python Questions... Pin
Raistlfiren15-Aug-05 10:37
Raistlfiren15-Aug-05 10:37 
GeneralRe: C++ and Python Questions... Pin
Christian Graus15-Aug-05 13:12
protectorChristian Graus15-Aug-05 13:12 
<small><b>Raistlfiren wrote:</b></small>
<i>So wait wouldn't this be right though: #include ?</i>

If you check 'Do not treat <'s as HTML tags', then I can see your includes. I've looked at the page source, and you're asking if #include <iostream.h> is right. No, it's not. The header is there, and will work, but it's not valid C++, it predates the C++ standard. If your book says to use it, burn the book and buy a decent one. You should #include <iostream>, which means you need to put using std::cout;, etc. as it places those things in namespace std.

Raistlfiren wrote:
So string classes are all of the classes that define words like if I were to say "cout << big" it would then say dog in the displayed text? Those are string classes?

YEs, as someone else explained, if you #include <string>, then you can do this

string big = "dog";

cout << big;

A string class gives you a lot more than a container, you can search in the string, and do operations on it, and it handles the memory allocations for you.

Raistlfiren wrote:
Then, the file you type in command prompt is what the arguements define?

What do you mean ?

Raistlfiren wrote:
So where is this standard library at that defines namespace std?

It's in a subdirectory of your compiler, and your compiler is set up to look there for files, that's what the #include <> means, to look in library directories, #include "string" would look in the local directory first.

Raistlfiren wrote:
Then use std::string to define a library that is in the namespace library?

using std::string tells the compiler that when you type string in the global namespace, to use the one in std. You also need to #include it, so it knows about it.

Raistlfiren wrote:
I am kind of just trying out a whole bunch of programming languages

I'd suggest you don't. Stick with one, until you know it. And don't worry that you don't know it all, start in a corner and learn one bit, then move on from there. Write some simple programs ( for example, I wrote a command line calculator early on ), and treat them as exercises that will expand your knowledge.




Christian Graus - Microsoft MVP - C++
GeneralRe: C++ and Python Questions... Pin
Raistlfiren15-Aug-05 16:11
Raistlfiren15-Aug-05 16:11 
GeneralRe: C++ and Python Questions... Pin
Christian Graus15-Aug-05 16:15
protectorChristian Graus15-Aug-05 16:15 
GeneralRe: C++ and Python Questions... Pin
vincent.reynolds15-Aug-05 7:03
vincent.reynolds15-Aug-05 7:03 
GeneralRe: C++ and Python Questions... Pin
Raistlfiren15-Aug-05 10:42
Raistlfiren15-Aug-05 10:42 
GeneralRe: C++ and Python Questions... Pin
DavidNohejl15-Aug-05 15:11
DavidNohejl15-Aug-05 15:11 
GeneralRe: C++ and Python Questions... Pin
Raistlfiren15-Aug-05 16:04
Raistlfiren15-Aug-05 16:04 
GeneralFirst Chance Exception Pin
suzie10014-Aug-05 18:17
suzie10014-Aug-05 18:17 
GeneralRe: First Chance Exception Pin
Steen Krogsgaard14-Aug-05 21:18
Steen Krogsgaard14-Aug-05 21:18 
GeneralLinked Lists Pin
sroberts8214-Aug-05 8:29
sroberts8214-Aug-05 8:29 
GeneralRe: Linked Lists Pin
Jack Puppy14-Aug-05 9:49
Jack Puppy14-Aug-05 9:49 
GeneralRe: Linked Lists Pin
Christian Graus14-Aug-05 13:53
protectorChristian Graus14-Aug-05 13:53 
GeneralRe: Linked Lists Pin
Abebe14-Aug-05 20:32
Abebe14-Aug-05 20:32 
GeneralRe: Linked Lists Pin
Trollslayer14-Aug-05 22:15
mentorTrollslayer14-Aug-05 22:15 
GeneralRe: Linked Lists Pin
David Crow15-Aug-05 3:29
David Crow15-Aug-05 3:29 
GeneralRe: Linked Lists Pin
Christian Graus14-Aug-05 13:55
protectorChristian Graus14-Aug-05 13:55 
GeneralRe: Linked Lists Pin
S. Senthil Kumar14-Aug-05 19:17
S. Senthil Kumar14-Aug-05 19:17 
GeneralRe: Linked Lists Pin
Prakash Nadar14-Aug-05 20:52
Prakash Nadar14-Aug-05 20:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.