Dsy Network www | forum | my | didattica | howto | wiki | el goog | stats | blog | dona | rappresentanti
Homepage
 Register   Calendar   Members  Faq   Search  Logout 
.dsy:it. : Powered by vBulletin version 2.3.1 .dsy:it. > Didattica > Corsi A - F > Algoritmi e strutture dati > creazione stringa di lunghezza arbitraria
  Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
_X_clear
.primate.

User info:
Registered: Oct 2008
Posts: 74 (0.01 al dì)
Location: novara
Corso: informatica
Anno: 2
Time Online: 19:35:36 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
creazione stringa di lunghezza arbitraria

Come posso fare a creare una stringa di lungehzza arbitraria? ovvero devo creare una stringa senza definire la sua lunghezza con una malloc, in quanto la sua lunghezza può essere di qualsiasi lunghezza!

20-01-2012 13:22
Click Here to See the Profile for _X_clear Click here to Send _X_clear a Private Message Find more posts by _X_clear Add _X_clear to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
panzone
.primate.

User info:
Registered: Sep 2010
Posts: 63 (0.01 al dì)
Location: Vigevano
Corso: Informatica
Anno: 2
Time Online: 16:10:18 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
Re: creazione stringa di lunghezza arbitraria

Originally posted by _X_clear
Come posso fare a creare una stringa di lungehzza arbitraria? ovvero devo creare una stringa senza definire la sua lunghezza con una malloc, in quanto la sua lunghezza può essere di qualsiasi lunghezza!


E' impossibile quello che chiedi. Sarebbe come chiedere di avere infinita memoria :D

20-01-2012 21:24
Click Here to See the Profile for panzone Click here to Send panzone a Private Message Find more posts by panzone Add panzone to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
_X_clear
.primate.

User info:
Registered: Oct 2008
Posts: 74 (0.01 al dì)
Location: novara
Corso: informatica
Anno: 2
Time Online: 19:35:36 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

forse mi sono spiegato male :) la malloc bisogna farla.... solo che il problema e che se faccio una malloc di 10 ma poi devo leggere una stringa d 30 caratteri come faccio? la soluzione dovrebbe essere una realloc, ma volevo avere altre idee, praticamente devo fare una stringa lunga quanta la parola letta da input

21-01-2012 11:04
Click Here to See the Profile for _X_clear Click here to Send _X_clear a Private Message Find more posts by _X_clear Add _X_clear to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 10:50.    Post New Thread    Post A Reply
  Last Thread   Next Thread
Show Printable Version | Email this Page | Subscribe to this Thread | Add to Bookmarks

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is ON
 

Powered by: vBulletin v2.3.1 - Copyright ©2000 - 2002, Jelsoft Enterprises Limited
Mantained by dsy crew (email) | Collabora con noi | Segnalaci un bug | Archive | Regolamento | Licenze | Thanks | Syndacate
Pagina generata in 0.073 seconds (46.32% PHP - 53.68% MySQL) con 25 query.