Quantcast

Maximum PC

It is currently Sun Sep 21, 2014 11:17 am

All times are UTC - 8 hours




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: I have started to learn c++
PostPosted: Wed Oct 20, 2004 5:20 pm 
7yrs+11,000 Posts
7yrs+11,000 Posts
User avatar

Joined: Tue Jul 27, 2004 5:44 pm
Posts: 11242
Location: The kitten above is not on fire.
I got got out of the first few chapters of my C++ book. I am starting to understand the basics :D


Top
  Profile  
 
 Post subject:
PostPosted: Wed Oct 20, 2004 5:34 pm 
Little Foot
Little Foot

Joined: Mon Aug 02, 2004 12:14 pm
Posts: 143
I wish I was learning C++ :( In my college course, we start out with just basic C. I am used to Java, so this is like going back to the Stone Age. I keep forgetting to do things like tell it to write to addresses rather than variables, and that functions can only return one value.


Top
  Profile  
 
 Post subject: Re: I have started to learn c++
PostPosted: Wed Oct 20, 2004 6:43 pm 
Java Junkie
Java Junkie
User avatar

Joined: Mon Jun 14, 2004 10:23 am
Posts: 24224
Location: Granite Heaven
gamerfreak wrote:
I got got out of the first few chapters of my C++ book. I am starting to understand the basics :D


Nice!! :D Good luck, gamer .. and be sure to ask questions if you need some help / extra explanations. :)


Top
  Profile  
 
 Post subject:
PostPosted: Thu Oct 21, 2004 2:16 pm 
7yrs+11,000 Posts
7yrs+11,000 Posts
User avatar

Joined: Tue Jul 27, 2004 5:44 pm
Posts: 11242
Location: The kitten above is not on fire.
Ok i need help, A example program calculater in the book, and i was trying to figure out after the cout comand, what do i put there so users can type text and number. Grr i cant explain my problem correctly.


Top
  Profile  
 
 Post subject:
PostPosted: Thu Oct 21, 2004 6:58 pm 
I judge you GUILTY!
I judge you GUILTY!
User avatar

Joined: Tue May 25, 2004 4:38 pm
Posts: 162
Location: New York City
Use cin to get input and store the input in a variable. For example to read an integer
type:
Code:
int number;
cout << "Type a number please: ";
cin >> number;


Top
  Profile  
 
 Post subject:
PostPosted: Thu Oct 21, 2004 8:15 pm 
Team Member Top 100
Team Member Top 100

Joined: Fri Sep 17, 2004 5:35 pm
Posts: 1176
Make sure you are using
"#include <iostream>
using namespace std;
"

instead of
"#include <iostream.h>
"

I've found a lot of books that are too old to use the correct form. There are better methods than the "using namespace std;", like "using std::cout" for whatever item from the std namespace you're using, but for now stick to "using namespace std;"


Top
  Profile  
 
 Post subject: Learning C++
PostPosted: Wed Oct 27, 2004 2:13 am 
8086
8086

Joined: Wed Oct 27, 2004 2:00 am
Posts: 1
I spent the whole of last year learning or should I say trying to learn C++. I hated it with a passion, though that might have had something to do with my tutor. He was never that keen to pass on information or explain things. He taught by the 'go out and find it yourself and I'll tell you if you are wrong but not why' method.

In the end I bought a teach yourself book only to find the code in the book wasn't compatible with the shit Borland compiler we were forced to use at the college.

This resulted in me having to do my homework twice, once to fit in with the compiler I got with the book and then alter the code so that Borland would recognise it.

I've since moved on to VB6 and despite a few teething troubles am really getting into it. I'm starting Java after Christmas and cannot wait.

So good luck with your C++. If I can be of any help please ask, cannot guarentee the answer will work on your compiler. :roll:


Top
  Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group