Salve...
1) volevo sapere se esiste un canale su IRC dove solitamente si ritrovano
tutti i programmatori di C++. Un posto dove fare domande veloci con
risposte immediate.
Come ben sapete, aspettare un giorno la risposta ad un thread e dover
interrompere la programmazione è un pò frustrante
Magari per fare domande veloci.....
2) mi hanno spiegato oggi gli struct a scuola ma il primo programmino che
ho fatto mi da subito degli errori.
Scusatemi...magari è un errore banalissimo....ma come faccio a dirgli che vcodice:#include <iostream.h> #include <conio.h> #include <string.h> #include <stdio.h> void main(){ clrscr(); const n=5; typedef struct studente { char nome[20]; char cognome[20]; float media; } //QUA L'ERRORE studente v[n]; //to be continued........ ............. Volevo dichiarare un'array di tipo studente ("v" come potete vedere), ma mi viene dato errore su studente v[n]; MESSAGES: Compiling STRUCT_C.CPP: Error STRUCT_C.CPP 16: , expected Error STRUCT_C.CPP 20: Undefined symbol 'v' Error STRUCT_C.CPP 33: Lvalue required Warning STRUCT_C.CPP 58: 't' is assigned a value that is never used
deve essere un array di n caratteri di tipo studente?
Grazie mille :-)