• Downloads
  • ! Read Me !
  • Μαθήματα
  • Φοιτητικά
  • Τεχνικά Θέματα
  • Συζητήσεις
  • Happy Hour!
  • About THMMY.gr
 V  < 
Search:  
Welcome, Guest. Please login or register.
June 17, 2025, 22:25:30 pm

Login with username, password and session length
Links
  Thmmy.gr portal
   Forum
   Downloads
   Ενεργ. Λογαριασμού
   Επικοινωνία
  
  Χρήσιμα links
   Σελίδα τμήματος
   Βιβλιοθήκη Τμήματος
   Elearning
   Φοιτητικά fora
   Πρόγραμμα Λέσχης
   Πρακτική Άσκηση
   Ηλεκτρονική Εξυπηρέτηση Φοιτητών
   Διανομή Συγγραμμάτων
   Ψηφιακό Καταθετήριο Διπλωματικών
   Πληροφορίες Καθηγητών
   Instagram @thmmy.gr
   mTHMMY
  
  Φοιτητικές Ομάδες
   ACM
   Aristurtle
   ART
   ASAT
   BEAM
   BEST Thessaloniki
   EESTEC LC Thessaloniki
   EΜΒ Auth
   IAESTE Thessaloniki
   IEEE φοιτητικό παράρτημα ΑΠΘ
   SpaceDot
   VROOM
   Panther
  
Πίνακας Ελέγχου
Welcome, Guest. Please login or register.
June 17, 2025, 22:25:30 pm

Login with username, password and session length

Αναζήτηση

Google

THMMY.gr Web
Πρόσφατα
Ισραήλ - Ιράν: Πόλεμος στ...
by Katarameno
[Today at 21:32:50]

[Ψηφιακά Ολοκληρωμένα Κυκ...
by tzortzis
[Today at 21:25:42]

[Εφ.Θερμοδυναμική] Γενικέ...
by PAPARI69
[Today at 20:59:13]

Πρακτική Άσκηση ΤΗΜΜΥ 201...
by chris_p30
[Today at 19:46:54]

[Γραφική] Λυμένα θέματα
by okanpala
[Today at 18:56:22]

Τι ακούτε αυτήν τη στιγμή...
by Katarameno
[Today at 14:25:00]

Αντικατάστασης πυκνωτή σε...
by george14
[Today at 13:58:20]

Πότε θα βγει το μάθημα; -...
by tzortzis
[Today at 13:19:53]

Αποτελέσματα Εξεταστικής ...
by george14
[Today at 12:08:25]

[ΨEE] Γενικές απορίες και...
by Juror8
[Today at 12:06:57]

[Οργάνωση Υπολογιστών] Γε...
by RAFI
[June 16, 2025, 22:46:54 pm]

[Σ.Π.Η.Ε.] Γενικές απορίε...
by Nikos_313
[June 16, 2025, 19:49:00 pm]

[ΘΤΠΑ] Γενικές απορίες κα...
by Nikos_313
[June 16, 2025, 16:56:56 pm]

[Αρχές Οικονομίας] Να επι...
by _Trob
[June 16, 2025, 13:28:21 pm]

[Σ.Α.Π.Γ.] Εργασία 2025
by Nikos_313
[June 16, 2025, 12:13:45 pm]

[Διανεμημένη Παραγωγή] Γε...
by Διάλεξις
[June 16, 2025, 01:56:37 am]

[Σ.Π.Η.Ε.] Παλιά θέματα -...
by nmpampal
[June 15, 2025, 06:43:15 am]

Το thmmy.gr στο instagram...
by Mr Watson
[June 15, 2025, 00:50:23 am]

[Λογισμός ΙΙ] Απορίες σε...
by el mariachi
[June 14, 2025, 20:47:07 pm]

ΠΡΟΣΟΧΗ στο ανέβασμα θεμά...
by tzortzis
[June 14, 2025, 16:54:08 pm]
Στατιστικά
Members
Total Members: 9961
Latest: Poli
Stats
Total Posts: 1426698
Total Topics: 31710
Online Today: 242
Online Ever: 2093
(April 17, 2025, 08:47:49 am)
Users Online
Users: 60
Guests: 134
Total: 194
Thanasis_pap
dioannidi
alexanton
anna.ts
Δημητρης Αξιμιωτης
george14
mmikelo
PANKRAV
Nikospneumatikos
donnis
engineer2030
iliaskou
stefanos hios
mavropan
dimitire
ikallima
plapas
msandr
elischat
ThanosKoutsoump
giorgosm05
ecevz
Fidelity
geo66
kmarkad
Jimlam
Νικη
bit11
EvP
Elenit
Farmengineer
alexandraskol
ioannisfa
rafail zisiadis
Pumpakos
Raphael
giorgosss03
lasef
dimchin
meliou
Manifold
vagelismo
tzortzis
dtsiamis
aachmet
andreassifo
stergiosb
iakov
Ioakeim Zisis
Eleniiii
unreasonable
pordozoumis
pavlaras
Giannis Masterio
Soterd52
nikos123321
eirinistyl
elenak
Εμφάνιση

Νέα για πρωτοετείς
Είσαι πρωτοετής;... Καλώς ήρθες! Μπορείς να βρεις πληροφορίες εδώ. Βοήθεια για τους καινούργιους μέσω χάρτη.
Κατεβάστε εδώ το Android Application για εύκολη πρόσβαση στο forum.
Ανεβάζετε τα θέματα των εξετάσεων στον τομέα Downloads με προσοχή στα ονόματα των αρχείων!

Νέα!
Συμβουλές καλής χρήσης του φόρουμ: Youtube embed code and links, Shoutbox, Notify, ...
Δείτε περισσότερα εδώ...
THMMY.gr > Forum > Μαθήματα Βασικού Κύκλου > 2ο Εξάμηνο > Αντικειμενοστραφής Προγραμματισμός (Moderators: chatzikys, tzortzis) > C++ compiler!!
0 Members and 1 Guest are viewing this topic.
Pages: 1 ... 3 4 [5] 6 7 8 Go Down Print
Author Topic: C++ compiler!!  (Read 15435 times)
Emfanever
Καταστραμμένος
********
Gender: Male
Posts: 5284


Πολίτης


View Profile
Re: C++ compiler!!
« Reply #60 on: October 29, 2008, 22:52:25 pm »

Quote from: Καμένος on October 29, 2008, 22:50:58 pm
Στο g++ βγαζει οτι ειναι deprecated header, άρα σου λέει να χρησιμοποιήσεις <iostream>..
Τώρα που το λές βγάζει κάτι για deprecated header. Δηλαδή άλλο iostream.h και άλλο iostream??
Logged
Καμένος
Μόνιμος κάτοικος ΤΗΜΜΥ.gr
******
Gender: Male
Posts: 2322


View Profile
Re: C++ compiler!!
« Reply #61 on: October 29, 2008, 22:56:51 pm »

Από: http://gcc.gnu.org/onlinedocs/libstdc++/manual/backwards.html

Pre-ISO headers moved to backwards or removed

The pre-ISO C++ headers (iostream.h, defalloc.h etc.) are available, unlike previous libstdc++ versions, but inclusion generates a warning that you are using deprecated headers.

This compatibility layer is constructed by including the standard C++ headers, and injecting any items in std:: into the global namespace.

For those of you new to ISO C++ (welcome, time travelers!), no, that isn't a typo. Yes, the headers really have new names. Marshall Cline's C++ FAQ Lite has a good explanation in item [27.4].

Some include adjustment may be required. What follows is an autoconf test that defines PRE_STDCXX_HEADERS when they exist.

# AC_HEADER_PRE_STDCXX
AC_DEFUN([AC_HEADER_PRE_STDCXX], [
  AC_CACHE_CHECK(for pre-ISO C++ include files,
  ac_cv_cxx_pre_stdcxx,
  [AC_LANG_SAVE
  AC_LANG_CPLUSPLUS
  ac_save_CXXFLAGS="$CXXFLAGS"
  CXXFLAGS="$CXXFLAGS -Wno-deprecated"   

  # Omit defalloc.h, as compilation with newer compilers is problematic.
  AC_TRY_COMPILE([
  #include <new.h>
  #include <iterator.h>
  #include <alloc.h>
  #include <set.h>
  #include <hashtable.h>
  #include <hash_set.h>
  #include <fstream.h>
  #include <tempbuf.h>
  #include <istream.h>
  #include <bvector.h>
  #include <stack.h>
  #include <rope.h>
  #include <complex.h>
  #include <ostream.h>
  #include <heap.h>
  #include <iostream.h>
  #include <function.h>
  #include <multimap.h>
  #include <pair.h>
  #include <stream.h>
  #include <iomanip.h>
  #include <slist.h>
  #include <tree.h>
  #include <vector.h>
  #include <deque.h>
  #include <multiset.h>
  #include <list.h>
  #include <map.h>
  #include <algobase.h>
  #include <hash_map.h>
  #include <algo.h>
  #include <queue.h>
  #include <streambuf.h>
  ],,
  ac_cv_cxx_pre_stdcxx=yes, ac_cv_cxx_pre_stdcxx=no)
  CXXFLAGS="$ac_save_CXXFLAGS"
  AC_LANG_RESTORE
  ])
  if test "$ac_cv_cxx_pre_stdcxx" = yes; then
    AC_DEFINE(PRE_STDCXX_HEADERS,,[Define if pre-ISO C++ header files are present. ])
  fi
])

Porting between pre-ISO headers and ISO headers is simple: headers like vector.h can be replaced with vector and a using directive using namespace std; can be put at the global scope. This should be enough to get this code compiling, assuming the other usage is correct.
Logged
Καμένος
Μόνιμος κάτοικος ΤΗΜΜΥ.gr
******
Gender: Male
Posts: 2322


View Profile
Re: C++ compiler!!
« Reply #62 on: October 29, 2008, 23:04:29 pm »

Και πιο καθαρά από εδώ: http://www.parashift.com/c++-faq-lite/coding-standards.html#faq-27.4

//------------------------------------------------------------------------------------------------

The headers in ISO Standard C++ don't have a .h suffix. This is something the standards committee changed from former practice. The details are different between headers that existed in C and those that are specific to C++.

The C++ standard library is guaranteed to have 18 standard headers from the C language. These headers come in two standard flavors, <cxxx> and <xxx.h> (where xxx is the basename of the header, such as stdio, stdlib, etc). These two flavors are identical except the <cxxx> versions provide their declarations in the std namespace only, and the <xxx.h> versions make them available both in std namespace and in the global namespace. The committee did it this way so that existing C code could continue to be compiled in C++. However the <xxx.h> versions are deprecated, meaning they are standard now but might not be part of the standard in future revisions. (See clause D.5 of the ISO C++ standard.)

The C++ standard library is also guaranteed to have 32 additional standard headers that have no direct counterparts in C, such as <iostream>, <string>, and <new>. You may see things like #include <iostream.h> and so on in old code, and some compiler vendors offer .h versions for that reason. But be careful: the .h versions, if available, may differ from the standard versions. And if you compile some units of a program with, for example, <iostream> and others with <iostream.h>, the program may not work.

For new projects, use only the <xxx> headers, not the <xxx.h> headers.

When modifying or extending existing code that uses the old header names, you should probably follow the practice in that code unless there's some important reason to switch to the standard headers (such as a facility available in standard <iostream> that was not available in the vendor's <iostream.h>). If you need to standardize existing code, make sure to change all C++ headers in all program units including external libraries that get linked in to the final executable.

All of this affects the standard headers only. You're free to name your own headers anything you like; see [27.9].
Logged
radio
Καταξιωμένος/Καταξιωμένη
***
Posts: 169


View Profile
Re: C++ compiler!!
« Reply #63 on: October 29, 2008, 23:22:40 pm »

Quote from: Καμένος on October 29, 2008, 22:42:23 pm
Ναι πρέπει. Αν στη C++ βάλεις #include <iostream> δε προκειται να βρεί τις cin και cout αν δε βάλεις using namespace std; ή std::cin , std::cout.

Σωστος,εχεις δικιο μετα απο πολλες δοκιμες θελει using namespace std; και #include <iostream>, στο dev 4 δεν θυμαμαι να υπαρχει τετοιο θεμα απλα ενα #include <iostream.h>
Logged
BOBoMASTORAS
Veteran
Καταστραμμένος
******
Posts: 6082


It just doesn't get any easier! It gets worse...


View Profile
deleted
« Reply #64 on: October 30, 2008, 00:23:18 am »

deleted
« Last Edit: June 14, 2015, 19:27:46 pm by BOBoMASTORAS » Logged

Της γενιάς μου βασιλιά,
μην κατέβεις τα σκαλιά.
Πιες αθάνατο νερό
να νικήσεις τον καιρό.

http://tools.ietf.org/html/rfc1149
The only reason we invent robots
ggpyr
Μόνιμος κάτοικος ΤΗΜΜΥ.gr
******
Gender: Male
Posts: 1247



View Profile WWW
Re: C++ compiler!!
« Reply #65 on: October 10, 2009, 14:41:28 pm »

κατέβασα το borland από ethmmy για δοκιμή αλλά δεν μπορώ να τον τρέξω μέσω των windows 7.. με βγάζει error...το δοκίμασα στο virtual machine σε xp και δουλεύει.. Υπάρχει τρόπος να κάνω κάτι ώστε να το τρέχω από 7? το compatibility mode των windows δεν δουλεύει επίσης   Embarrassed
Logged

Merlin
Μόνιμος κάτοικος ΤΗΜΜΥ.gr
******
Gender: Male
Posts: 1377


The Phantom Blot


View Profile
Re: C++ compiler!!
« Reply #66 on: October 10, 2009, 14:44:17 pm »

Borland?Πας καλα?Dev-C++ λεμε...Δεν υπαρχει πιο απλος compiler.
Logged
Emfanever
Καταστραμμένος
********
Gender: Male
Posts: 5284


Πολίτης


View Profile
Re: C++ compiler!!
« Reply #67 on: October 10, 2009, 14:44:47 pm »

και εγώ το είχα δοκιμάσει σε vista και δε δούλευε, οπότε πήγα σε dev...

μήπως έχεις x64 windows?
Logged
ggpyr
Μόνιμος κάτοικος ΤΗΜΜΥ.gr
******
Gender: Male
Posts: 1247



View Profile WWW
Re: C++ compiler!!
« Reply #68 on: October 10, 2009, 14:55:03 pm »

Quote from: Emfanever on October 10, 2009, 14:44:47 pm
και εγώ το είχα δοκιμάσει σε vista και δε δούλευε, οπότε πήγα σε dev...

μήπως έχεις x64 windows?

ναι...
Logged

Emfanever
Καταστραμμένος
********
Gender: Male
Posts: 5284


Πολίτης


View Profile
Re: C++ compiler!!
« Reply #69 on: October 10, 2009, 14:57:19 pm »

στα x64 δε δουλευει καθόλου
Logged
ggpyr
Μόνιμος κάτοικος ΤΗΜΜΥ.gr
******
Gender: Male
Posts: 1247



View Profile WWW
Re: C++ compiler!!
« Reply #70 on: October 10, 2009, 14:59:18 pm »

Quote from: Merlin on October 10, 2009, 14:44:17 pm
Borland?Πας καλα?Dev-C++ λεμε...Δεν υπαρχει πιο απλος compiler.

απλά περσυ που είχα πάρει c δούλευα εξ αρχής με borland και το συνήθησα
Logged

Emfanever
Καταστραμμένος
********
Gender: Male
Posts: 5284


Πολίτης


View Profile
Re: C++ compiler!!
« Reply #71 on: October 10, 2009, 15:05:26 pm »

Quote from: fel-os on October 10, 2009, 14:59:18 pm
Quote from: Merlin on October 10, 2009, 14:44:17 pm
Borland?Πας καλα?Dev-C++ λεμε...Δεν υπαρχει πιο απλος compiler.

απλά περσυ που είχα πάρει c δούλευα εξ αρχής με borland και το συνήθησα

και εγώ το ίδιο είχα κάνει, αλλά στην πορεία είδα ότι ο dev είναι πολύ καλύτερος!
Logged
emmanuel
Veteran
Αbsolute ΤΗΜΜΥ.gr
******
Gender: Male
Posts: 3830


πλάκα με κανεις?


View Profile WWW
Re: C++ compiler!!
« Reply #72 on: October 10, 2009, 15:18:58 pm »

απο γραφικο περιβαλλον δεν ειναι και το καλυτερο (το VS ειναι πολυ καλυτερο), αλλα απο την αλλη ο compiler του dev ειναι ο πιο γρηγορος που κυκλοφορει.

Logged

tu/e
fantomas
Αbsolute ΤΗΜΜΥ.gr
*******
Gender: Male
Posts: 3228



View Profile
Re: C++ compiler!!
« Reply #73 on: October 10, 2009, 16:07:27 pm »

Quote from: Merlin on October 10, 2009, 14:44:17 pm
Borland?Πας καλα?Dev-C++ λεμε...Δεν υπαρχει πιο απλος compiler.
Για πείτε link για να τον κατεβάσω!
Logged

-Buenos dias!
-Kinder Bueno!!!
dim
Honoured Member
Μόνιμος κάτοικος ΤΗΜΜΥ.gr
**********
Gender: Male
Posts: 1564


finding emo


View Profile
Re: C++ compiler!!
« Reply #74 on: October 10, 2009, 16:18:43 pm »

http://www.bloodshed.net/devcpp.html
Logged
Pages: 1 ... 3 4 [5] 6 7 8 Go Up Print
Jump to:  

Powered by SMF | SMF © 2006-2009, Simple Machines LLC
Scribbles2 | TinyPortal © Bloc | XHTML | CSS
Loading...