Click here to Skip to main content
15,887,329 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: WaitForMultipleObjects getting access violation in Worker Thread Pin
ForNow10-May-21 4:51
ForNow10-May-21 4:51 
AnswerRe: WaitForMultipleObjects getting access violation in Worker Thread Pin
Randor 11-May-21 12:30
professional Randor 11-May-21 12:30 
GeneralRe: WaitForMultipleObjects getting access violation in Worker Thread Pin
ForNow12-May-21 1:36
ForNow12-May-21 1:36 
GeneralRe: WaitForMultipleObjects getting access violation in Worker Thread Pin
Victor Nijegorodov12-May-21 2:00
Victor Nijegorodov12-May-21 2:00 
GeneralRe: WaitForMultipleObjects getting access violation in Worker Thread Pin
ForNow12-May-21 2:30
ForNow12-May-21 2:30 
GeneralRe: WaitForMultipleObjects getting access violation in Worker Thread Pin
Victor Nijegorodov12-May-21 2:37
Victor Nijegorodov12-May-21 2:37 
GeneralRe: WaitForMultipleObjects getting access violation in Worker Thread Pin
ForNow12-May-21 2:47
ForNow12-May-21 2:47 
QuestionC, Pin
Ajay Kumar May20214-May-21 20:49
Ajay Kumar May20214-May-21 20:49 
Question: 
Replace all the vowels of the given input string with a single digit number.
Input: 
String of length L and all lower-case letters.
Output: 
Input String replaced with the digit.
Program explanation: 
Replace all the vowels in the given input string with a single digit number you get after all the below 
steps.
Step 1: Get the index of the vowel in the given input.
Step 2: Multiply the index with 100.
Step 3: Sum all the prime numbers between 1 and the resulting number from last step.
Step 4: Add the digits of the number you get from the last step until you get a single digit.
Step 5: Now, Replace the vowel with the digit from the last step.

Input:
hello
Output:
h7ll9
Explanation:
Step 1: First vowel found at index 1.
Step 2: 1 * 100 = 100
Step 3: Sum of prime numbers between 1 and 100 is 1060
Step 4: Sum of each digit until we get single digit:
= 1 + 0 + 6 + 0
= 7
Step 5: Replace e with 7
Output now: h7llo
Step 1: Next vowel found at index 4.
Step 2: 4 * 100 = 400
Step 3: Sum of prime numbers between 1 and 400 is 13887
Step 4: Sum of each digit until we get single digit:
= 1 + 3 + 8 + 8 + 7
= 27
= 2 + 7
= 9
Step 5: Replace o with 9
Final output: h7ll9
Example 2:
Input : replace this
Output. : r7pl9c1 th5s
AnswerRe: C, Pin
Richard MacCutchan4-May-21 21:23
mveRichard MacCutchan4-May-21 21:23 
AnswerRe: C, Pin
Gerry Schmitz5-May-21 8:29
mveGerry Schmitz5-May-21 8:29 
QuestionC2065 'IUrlHistoryStg2Ptr': undeclared identifier Pin
Saikat_EPAM28-Apr-21 22:25
Saikat_EPAM28-Apr-21 22:25 
AnswerRe: C2065 'IUrlHistoryStg2Ptr': undeclared identifier Pin
Richard MacCutchan28-Apr-21 23:12
mveRichard MacCutchan28-Apr-21 23:12 
GeneralRe: C2065 'IUrlHistoryStg2Ptr': undeclared identifier Pin
CPallini29-Apr-21 0:20
mveCPallini29-Apr-21 0:20 
GeneralRe: C2065 'IUrlHistoryStg2Ptr': undeclared identifier Pin
Victor Nijegorodov29-Apr-21 1:51
Victor Nijegorodov29-Apr-21 1:51 
AnswerRe: C2065 'IUrlHistoryStg2Ptr': undeclared identifier Pin
Richard MacCutchan29-Apr-21 2:18
mveRichard MacCutchan29-Apr-21 2:18 
QuestionMessage Closed Pin
28-Apr-21 4:41
Member 1496877128-Apr-21 4:41 
AnswerRe: How to "link" two C++ applications ? Pin
Richard MacCutchan28-Apr-21 5:41
mveRichard MacCutchan28-Apr-21 5:41 
AnswerRe: How to "link" two C++ applications ? Pin
Sean Ewington28-Apr-21 5:45
staffSean Ewington28-Apr-21 5:45 
QuestionWSARecv question Pin
ForNow25-Apr-21 17:17
ForNow25-Apr-21 17:17 
QuestionCAyncSocket::Detach Fails _AFX_SOCK_THREAD_STATE* pState-> m_hSocketWindow == NULL Pin
ForNow25-Apr-21 3:57
ForNow25-Apr-21 3:57 
AnswerRe: CAyncSocket::Detach Fails _AFX_SOCK_THREAD_STATE* pState-> m_hSocketWindow == NULL Pin
Mircea Neacsu25-Apr-21 5:38
Mircea Neacsu25-Apr-21 5:38 
GeneralRe: CAyncSocket::Detach Fails _AFX_SOCK_THREAD_STATE* pState-> m_hSocketWindow == NULL Pin
ForNow25-Apr-21 5:52
ForNow25-Apr-21 5:52 
AnswerRe: CAyncSocket::Detach Fails _AFX_SOCK_THREAD_STATE* pState-> m_hSocketWindow == NULL Pin
Victor Nijegorodov25-Apr-21 5:49
Victor Nijegorodov25-Apr-21 5:49 
GeneralRe: CAyncSocket::Detach Fails _AFX_SOCK_THREAD_STATE* pState-> m_hSocketWindow == NULL Pin
ForNow25-Apr-21 6:01
ForNow25-Apr-21 6:01 
QuestionPlz solve it Pin
SARKER MD KAWSER ALOM24-Apr-21 13:11
SARKER MD KAWSER ALOM24-Apr-21 13:11 

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.