Mombu the Programming Forum

Go Back   Mombu the Programming Forum > Programming > Programming languages > Accelerated C beginner question.
User Name
Password
REGISTER NOW! Mark Forums Read




Reply Bookmark and Share
1 10th October 16:53
chris croughton
External User
 
Posts: 1
Default Accelerated C beginner question.



iostream.h was the old (pre-standard) name for it.

You are provably wrong:

$ c++ -c /tmp/1.cc
In file included from /usr/local/gcc/lib/.../iostream.h:31,
from /tmp/1.cc:1:
/usr/local/gcc/lib/gcc/.../include/c++/3.4.3/backward/backward_warning.h:32:2:
warning: #warning This file includes at least one deprecated or antiquated
header. Please consider using one of the 32 headers found in section 17.4.1.2
of the C++ standard. Examples include substituting the <X> header for the
<X.h> header for C++ includes, or <iostream> instead of the deprecated header
<iostream.h>. To disable this warning use -Wno-deprecated.

$ c++ --version
c++ (GCC) 3.4.3
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

(Lines wrapped and paths truncated using ... to fit in a post.)

Chris C
  Reply With Quote


 


2 10th October 16:54
alfps@startno alf p
External User
 
Posts: 1
Default Accelerated C beginner question.



* Chris Croughton:

<iostream.h> from pre-standard days was not standardized
(it could contain anything), and did not provide the modern iostreams.
The standard <iostream> header has never had another name.


I stand corrected.

g++ 3.4.3 (and 3.4.2) is, in other words, incorrect in this regard.

Oh well...

--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
  Reply With Quote
3 10th October 16:56
peter kragh
External User
 
Posts: 1
Default Accelerated C beginner question.


1)
What do you return here?

2)
What takes place here? What order?

Try to answer question 2) first and then 1). Hint: a = x.

I think it would be a good exercise to figure this one out by yourself.
You may get some help by changing the myFun to:

int myFun(int&, int&)

Good luck. If you get stuck, write again.

BR,
Peter
  Reply With Quote
4 10th October 16:57
ioannis vranos
External User
 
Posts: 1
Default Accelerated C beginner question.


These are unneeded technicalities, however as someone else mentioned in this thread, it is
about compiler-specific facilities that are deprecated and not ISO C++ facilities. The
compiler is free to consider some older of its own facilities as deprecated.

--
Ioannis Vranos

http://www23.brinkster.com/noicys
  Reply With Quote


 


Reply


Thread Tools
Display Modes


Some other forums that might be of your interest : Development, Ada, Apple script, Assembler, Awk, Beos, Basic, C, C++, C#, C# .net, .net, .net frameworks, Asp .net, Clarion, Clipper, Clos, Clu, Cobol, Coldfusion, Delphi, Dylan, Eiffel, Forth, Fortran, Haskell, Hermes, Icon, Idl, Java, Java script, Jscript .net, Jcl, Linoleum, Lisp, Lotus, Limbo, Logo, Ml, Mumps, Oberon, Postscript, Pop, Pl1, Prolog, Python, Ruby, Pascal, Perl, Php, Rebol, Rexx, Sed, Sather, Scheme, Smalltalk, Tcl, Vhdl, Vrml, Visual basic, Visual basic .net, Yorick, Mysql, Omnis, Postgresql, Xbase, Access, Oracle, Adabas, Berkeley, Btrieve, Filemaker, Gupta, Db2, Informix, Ingres, Mssql server, Object, Olap, Paradox, Rdb, Revelation, Sybase, Theory, Dbase, Html, Java script, Css, Flash, Photoshop, Corel script, Xml, Tech, Beos, Gem, Hp48, Hpux, Linux, Mac, Ms-dos, Os2, Palm, Solaris, Ti99, Windows, Xenix, Aos, Chorus, Geos, Inferno, Lantastic, Lynx, Mach, Minix, Netware, Os9, Parix, Plan9, Psos, Qnx, Xinu, Sco, Unix, Aix, Aux, 386bsd, Bsdi, Freebsd, Netbsd, Openbsd, Ultrix, Amd, Intel, Aptiva, Buz, Deals, Homebuilt, Overclocking, Programming, Extra forums


Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666