Click here to Skip to main content
15,881,687 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: MAPI error MAPI_E_NOT_SUPPORTED problem Pin
Gerry Schmitz9-Sep-22 15:54
mveGerry Schmitz9-Sep-22 15:54 
QuestionProblem creating an array of "class" Pin
Roberto64_Ge6-Sep-22 10:25
Roberto64_Ge6-Sep-22 10:25 
SuggestionRe: Problem creating an array of "class" Pin
Mircea Neacsu6-Sep-22 10:38
Mircea Neacsu6-Sep-22 10:38 
GeneralRe: Problem creating an array of "class" Pin
Roberto64_Ge6-Sep-22 10:57
Roberto64_Ge6-Sep-22 10:57 
AnswerRe: Problem creating an array of "class" Pin
Richard MacCutchan7-Sep-22 5:10
mveRichard MacCutchan7-Sep-22 5:10 
GeneralRe: Problem creating an array of "class" Pin
Roberto64_Ge8-Sep-22 3:55
Roberto64_Ge8-Sep-22 3:55 
GeneralRe: Problem creating an array of "class" Pin
Greg Utas8-Sep-22 4:24
professionalGreg Utas8-Sep-22 4:24 
GeneralRe: Problem creating an array of "class" Pin
Roberto64_Ge8-Sep-22 4:32
Roberto64_Ge8-Sep-22 4:32 
OK thanks.

By the way, may I call a method , example setNome(stringaNome) from within another method? I attach here three methods of the class, the greater calling the two small.


C++
void anagrafica::setNome(string n_)
   {
   nome_cifrato=n_;
   }

void anagrafica::setCognome(string c_)
   {
   cognome_cifrato=c_;
   }

void anagrafica::codifica(string nome_chiaro, string cognome_chiaro, int chiave)
{ 
 char car;
 nome_cifrato = "";
 cognome_cifrato = "";
 for (int i=0;i <nome_chiaro.length();i++)
    {
     car = nome_chiaro[i] + chiave;
     nome_cifrato = nome_cifrato + car;
     cout<<"carattere "<<i<<" n in chiaro "<<nome_chiaro[i]<<" chiave  "<<chiave<<" cifrato "<<car<<" nome incostruzione "<<nome_cifrato<<endl;
    }
 setNome(nome_cifrato);     
 for (int i=0; i<cognome_chiaro.length();i++)
    {
     car = cognome_chiaro[i] + chiave;
     cognome_cifrato = cognome_cifrato + car;
     cout<<"carattere "<<i<<" c in chiaro "<<cognome_chiaro[i]<<" chiave  "<<chiave<<" cifrato "<<car<<" cognome incostruzione "<<cognome_cifrato<<endl;
    }
 setCognome(cognome_cifrato);   
}


The two lines of code hghlighted have no effects.
GeneralRe: Problem creating an array of "class" Pin
Greg Utas8-Sep-22 6:59
professionalGreg Utas8-Sep-22 6:59 
GeneralRe: Problem creating an array of "class" Pin
Richard MacCutchan8-Sep-22 23:57
mveRichard MacCutchan8-Sep-22 23:57 
GeneralRe: Problem creating an array of "class" Pin
Richard MacCutchan8-Sep-22 4:32
mveRichard MacCutchan8-Sep-22 4:32 
GeneralRe: Problem creating an array of "class" Pin
Roberto64_Ge8-Sep-22 4:36
Roberto64_Ge8-Sep-22 4:36 
GeneralRe: Problem creating an array of "class" Pin
Richard MacCutchan8-Sep-22 4:53
mveRichard MacCutchan8-Sep-22 4:53 
GeneralRe: Problem creating an array of "class" Pin
Roberto64_Ge8-Sep-22 5:18
Roberto64_Ge8-Sep-22 5:18 
GeneralRe: Problem creating an array of "class" Pin
Richard MacCutchan8-Sep-22 5:25
mveRichard MacCutchan8-Sep-22 5:25 
GeneralRe: Problem creating an array of "class" Pin
Roberto64_Ge8-Sep-22 5:27
Roberto64_Ge8-Sep-22 5:27 
GeneralRe: Problem creating an array of "class" Pin
Richard MacCutchan8-Sep-22 5:17
mveRichard MacCutchan8-Sep-22 5:17 
GeneralRe: Problem creating an array of "class" Pin
Roberto64_Ge8-Sep-22 5:26
Roberto64_Ge8-Sep-22 5:26 
GeneralRe: Problem creating an array of "class" Pin
Richard MacCutchan8-Sep-22 5:38
mveRichard MacCutchan8-Sep-22 5:38 
GeneralRe: Problem creating an array of "class" Pin
Roberto64_Ge8-Sep-22 5:43
Roberto64_Ge8-Sep-22 5:43 
GeneralRe: Problem creating an array of "class" Pin
Roberto64_Ge8-Sep-22 5:37
Roberto64_Ge8-Sep-22 5:37 
GeneralRe: Problem creating an array of "class" Pin
Richard MacCutchan8-Sep-22 5:45
mveRichard MacCutchan8-Sep-22 5:45 
GeneralRe: Problem creating an array of "class" Pin
Roberto64_Ge8-Sep-22 8:04
Roberto64_Ge8-Sep-22 8:04 
GeneralRe: Problem creating an array of "class" Pin
Richard MacCutchan8-Sep-22 23:37
mveRichard MacCutchan8-Sep-22 23:37 
GeneralRe: Problem creating an array of "class" Pin
Roberto64_Ge9-Sep-22 10:30
Roberto64_Ge9-Sep-22 10:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.