Προς το περιεχόμενο

Help me programma C++


iz_us

Προτεινόμενες αναρτήσεις

Δημοσ.

Loipon insomniacs eftiaksa ena programmataki gia voting system pou mou zhthsan apo tin sxoli alla to $%!$%!% mou vgazei ena error kai ena warning ta opoia den kserw pws na diwrthwsw.Sto link: c++ assingment , tha vreite ton kwdika.Opoios boresei as voithisei....

Δημοσ.

ayat einai pou mou vgazei...

c:\program files\microsoft visual studio\vc98\include\iostream.h(1) : warning C4182: #include nesting level is 363 deep; possible infinite recursion

c:\program files\microsoft visual studio\vc98\include\iostream.h(1) : fatal error C1076: compiler limit : internal heap limit reached; use /Zm to specify a higher limit

Δημοσ.

de kserw C++ alla apoti vlepw apo ta errors prosexe prwton to heap sou (i genikotera ta limits stis diafores times) kai defteron koita an ontws exeis kana recursion stpn algorithmo koita mipws mpenei se infinite loop....giati de sou vgazei pou einai to error?

Δημοσ.

an sou pw oti den to poly katalava ayto pou egrapses tha gelaseis....??? <img src="http://www.insomnia.gr/ubbthreads/images/graemlins/grin.gif" alt="" /> Eimai ligo mapas stin C++ <img src="http://www.insomnia.gr/ubbthreads/images/graemlins/confused.gif" alt="" />

  • 2 εβδομάδες αργότερα...
Δημοσ.

iz_us, sorry pou sto lew alla to readability tou code sou einai TRAGIKO! Kai na 8elei kapoios na se voithisei diavazontas to kodika den 8a ginotan.

Katarxas ta vote1,2,3... giati re boy den ta evales se ena array ?

 

Telospantw to problem sou einai allo, oti o Linker sou 8elei tin main function gia EntryPoint kai epeidi den vriskei ta defaults pou dinontai se mia main nomizei oti den iparxei kai pa8ainei paniko.

 

ALLA epeidi den 8elw na se talaipwrisw kai na se vazw na diavazeis diafora apla pigaine Project > Settings > Link kai ekei pou grafei EntryPointSymbol grapse main meta pata OK kai meta rebuild.

 

Kai na grafeis pio omorfa to kodika sou ,den sou tin lew ,anti8etws paizei na einai apo tis kaliteres simvoules pou mou eixan dwsei emena palia.

Δημοσ.

file maniake se efxaristw poly.Min kollas katholou sto na dineis symvoules, allwste oli h idea tou forum einai ayti.Egw eimai texnikos kai kserw pws an den mou eixan dwsei merikes symvoules den tha eixa kanei tipota, kai den tha hmoun twra se shmeio na dine kai gw symvoules se texnika themata....Exw mathei na pernw symvoules opou den kserw( opws eipa eimai psiloasxetws me tin c++) kai xairomai poly pou yparxoun atoma pou exoun tin kali diathesi oxi mono na voithisoun na lythei ena problem alla kai na voithisoun ton allon na ginei kalyteros....Kai pali thx. Tha koitaksw ti ginetai me ton kwdika kai tha sas pw sydoma.....

  • 2 εβδομάδες αργότερα...
Δημοσ.

ba re file maniake telika pali ta idia pou eixa pei kai pio prin mou vgazei.Kamia alli idea paizei?Einai ergasia giatin sxoli kai epepe na tin exw dwsei apo ton maio.....G@M!S3 ta....

Δημοσ.

iz_us, kai se mena to evgaze pantws alla me to pou eftiaksa to entry point ekane build mia xara. Pes mou akrivws ti vazeis kai pou. Elpizw na milame kai oi 2 gia ton kwdika pou vriskete http://zero0.freeservers.com/c++.htm kai oxi na exeis allaksei kati.

 

Parakatw einai to ouput pou pernw apo to build tou kodika pou exeis dwsei sto parapanw htm xoris na allaksw kati :

 

Deleting intermediate files and output files for project 'skata2 - Win32 Debug'.

--------------------Configuration: skata2 - Win32 Debug--------------------

Compiling...

StdAfx.cpp

Compiling...

skata2.cpp

Linking...

LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16

Debug/skata2.exe : fatal error LNK1120: 1 unresolved externals

Error executing link.exe.

 

skata2.exe - 2 error(s), 0 warning(s)

 

Me to pou allaksw to entry point apo to Project => Settings => Link ( kai epelekse sto Category to Output - auto den sto eipa sto prwto post ,to ksexasa - kai meta ekei pou leei EntryPoint Symbol grapse tin leksi main kai meta rebuild. To output pou pernw twra :

 

Deleting intermediate files and output files for project 'skata2 - Win32 Debug'.

--------------------Configuration: skata2 - Win32 Debug--------------------

Compiling...

StdAfx.cpp

Compiling...

skata2.cpp

Linking...

 

skata2.exe - 0 error(s), 0 warning(s)

Δημοσ.

Compiled with bcc32 ( 5.5.1 )

 

Results:

 

>
CANDIDATE   SOUTH    NORTH      EAST      WEST     TOTAL     %VOTE

a         1         1         1         1         4        10%
b         2         2         2         2         8        20%
c         3         3         3         3        12        30%
d        4         4         4         4        16        40%



According to the results from the votes gathered the winner of the 2003 elections is:d

******************************************************************************

 

Exei tis swstes times pou edwsa san input. Looks good, boss!

 

compiler limit : internal heap limit reached; use /Zm to specify a higher limit

Xrhsimopoihses to flag pou sou leei h oxi? Logika, an dwseis mia megalh timh den 8a yparxei problhma.

Δημοσ.

re paidia den kserw ti na pw, re sy maniake ola osa les kanw kai pali ta idia mou vgazei....Re sy bilman, den kserw pws na tto valw ayto to flag to /zm, den les pws ginetai mipws kai lythei to prob???

Δημοσ.

iz_us, auto pou leei o Billman to vazeis sto Project => Settings => C/C++ , dialekse to kategory General kai katw leei project options. Afise ena keno apo to teleutaio kai grapse /Zm (kai oxi /zm pou eipes) . Apo ekei kai pera den kserw giati den sou kanei build. Ama to paradwseis pantws kai 8eloun kai to executable boro na sto kanw egw i o Billman kai na sto dwsoume oste na to dwseis mazi me to kwdika. I Boreis na dokimaseis na to kaneis build me Borland C++ Builder opos ekane o Billman.

Αρχειοθετημένο

Αυτό το θέμα έχει αρχειοθετηθεί και είναι κλειστό για περαιτέρω απαντήσεις.

  • Δημιουργία νέου...