Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 10-14-2004, 09:00 AM   #1 (permalink)
cracksevi
Registered User
 
Join Date: Oct 2004
Posts: 14
cracksevi is on a distinguished road
Send a message via ICQ to cracksevi
greets

hello peepz...
im another newbie in c++...
hope will learn much in time..knowledge is cool ))
btw
i got deitel's book for c++...anythin other that i may need u think??
cracksevi is offline   Reply With Quote
Old 10-14-2004, 09:10 AM   #2 (permalink)
Valmont
[code][/code] enforcer
 
Valmont's Avatar
 
Join Date: Mar 2003
Location: Netherlands
Posts: 1,544
Valmont is on a distinguished road
Welcome sir.

Experiance is the teacher mostly. So that's what you'll need I think.
__________________
Valmont is offline   Reply With Quote
Old 10-14-2004, 09:46 AM   #3 (permalink)
cracksevi
Registered User
 
Join Date: Oct 2004
Posts: 14
cracksevi is on a distinguished road
Send a message via ICQ to cracksevi
so true...but will have no experience by knowing nottin about the proggie hehe
so lets learn and earn experience with the knowledge )
cracksevi is offline   Reply With Quote
Old 10-14-2004, 12:15 PM   #4 (permalink)
cracksevi
Registered User
 
Join Date: Oct 2004
Posts: 14
cracksevi is on a distinguished road
Send a message via ICQ to cracksevi
here i come with a basic question....
i noticed many ppl use this :


using namespace std;


this is the command for not using std:: each time correct?
cracksevi is offline   Reply With Quote
Old 10-14-2004, 12:35 PM   #5 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,709
redhead is on a distinguished road
Yes
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead is offline   Reply With Quote
Old 10-14-2004, 12:40 PM   #6 (permalink)
cracksevi
Registered User
 
Join Date: Oct 2004
Posts: 14
cracksevi is on a distinguished road
Send a message via ICQ to cracksevi
for example :
#include <iostream>
using std::cout;
using std::cin;
using std::endl;
using std::ios;

#include <iomanip>
using std::setprecision;
using std::setiosflags;






these can be shortened by anyway?
cracksevi is offline   Reply With Quote
Old 10-14-2004, 12:54 PM   #7 (permalink)
Valmont
[code][/code] enforcer
 
Valmont's Avatar
 
Join Date: Mar 2003
Location: Netherlands
Posts: 1,544
Valmont is on a distinguished road
Yes. Although it is not advisable to do so. This is what I earlier wrote:

Ok.

C++ has a standard as defined by a certain comittee called ISO. ISO C++ is the international operating independent C++ standard. ANSI, also important, is the American C++ standard.
The fact that I am using <iostream> etcetera WITHOUT the .h extension means that I am going to to program in standard C++. But using standard methods and functions and algorithms and containers means that I need to enter this all the time:
std::cout; std::cin ; std::getline; and so forth.
So what I do is define it in once like this:
Code:
using std::cout;
using std::cin;
using std::endl;
using std::string;
I could do it even simpler: using namepsace std; .
But now I am forcing everybody to use standard C++ for the headers that I included in the file. That is not very professional. That's why I did it this way. A sort of in-between way.
__________________
Valmont is offline   Reply With Quote
Old 10-14-2004, 01:07 PM   #8 (permalink)
cracksevi
Registered User
 
Join Date: Oct 2004
Posts: 14
cracksevi is on a distinguished road
Send a message via ICQ to cracksevi
so is more proper to do in this way....
i just wondered if it could be more simplified..but better to do as u say...u the master..not me..
it will take some while till i learn the basics i think
but one day i will succeed
thanx for the infos bro
cracksevi is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -8. The time now is 06:35 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting