Click here to Skip to main content
14,693,634 members
Home » Discussions » ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: Adding two matrix objects and assigning the result to third object using overloaded operators ? Pin
Tarun Jha24-Mar-18 4:58
MemberTarun Jha24-Mar-18 4:58 
GeneralRe: Adding two matrix objects and assigning the result to third object using overloaded operators ? Pin
Richard MacCutchan24-Mar-18 5:31
mveRichard MacCutchan24-Mar-18 5:31 
GeneralRe: Adding two matrix objects and assigning the result to third object using overloaded operators ? Pin
Tarun Jha24-Mar-18 9:17
MemberTarun Jha24-Mar-18 9:17 
QuestionWhy the arrow button on TabControl is not working in my MFC application. Pin
Sampath57910-Mar-18 1:35
MemberSampath57910-Mar-18 1:35 
AnswerRe: Why the arrow button on TabControl is not working in my MFC application. Pin
Richard MacCutchan10-Mar-18 2:07
mveRichard MacCutchan10-Mar-18 2:07 
QuestionHow to change color of Tab View in MFC Pin
Sampath57910-Mar-18 1:01
MemberSampath57910-Mar-18 1:01 
AnswerRe: How to change color of Tab View in MFC Pin
Richard MacCutchan10-Mar-18 2:07
mveRichard MacCutchan10-Mar-18 2:07 
Questionhow to use getchar() to store n names in an array ? Pin
Tarun Jha26-Dec-17 9:31
MemberTarun Jha26-Dec-17 9:31 
i am trying to take multiple names by using getchar() but it only taking the first value and just skipping the rest.
here is the code.

#include <stdio.h>

int main()
{
    char name[10][30], ch;
    int i;

    for(i=0; i<10; i++)
    {
        printf("Enter name: \n");

        int j=0;
        while(ch != '\n')
        {
            ch = getchar();
            name[i][j] = ch;
            j++;
        }
        name[i][j] = '\0';

    }

    return 0;
}


AnswerRe: how to use getchar() to store n names in an array ? Pin
Richard MacCutchan26-Dec-17 9:46
mveRichard MacCutchan26-Dec-17 9:46 
AnswerRe: how to use getchar() to store n names in an array ? Pin
Rick York26-Dec-17 11:04
mveRick York26-Dec-17 11:04 
GeneralRe: how to use getchar() to store n names in an array ? Pin
Tarun Jha26-Dec-17 21:02
MemberTarun Jha26-Dec-17 21:02 
Questionhow to initialize a value to pointer ? Pin
Tarun Jha21-Dec-17 10:08
MemberTarun Jha21-Dec-17 10:08 
AnswerRe: how to initialize a value to pointer ? Pin
Rick York21-Dec-17 10:45
mveRick York21-Dec-17 10:45 
GeneralRe: how to initialize a value to pointer ? Pin
Tarun Jha21-Dec-17 11:20
MemberTarun Jha21-Dec-17 11:20 
GeneralRe: how to initialize a value to pointer ? Pin
Rick York21-Dec-17 13:25
mveRick York21-Dec-17 13:25 
GeneralRe: how to initialize a value to pointer ? Pin
Tarun Jha26-Dec-17 9:13
MemberTarun Jha26-Dec-17 9:13 
AnswerRe: how to initialize a value to pointer ? Pin
Richard MacCutchan21-Dec-17 22:42
mveRichard MacCutchan21-Dec-17 22:42 
QuestionProblem with recursion. Pin
Tarun Jha16-Dec-17 6:46
MemberTarun Jha16-Dec-17 6:46 
QuestionRe: Recursion not working. Pin
Richard MacCutchan16-Dec-17 7:24
mveRichard MacCutchan16-Dec-17 7:24 
AnswerRe: Recursion not working. Pin
Tarun Jha16-Dec-17 8:51
MemberTarun Jha16-Dec-17 8:51 
GeneralRe: Recursion not working. Pin
Richard MacCutchan16-Dec-17 10:49
mveRichard MacCutchan16-Dec-17 10:49 
GeneralRe: Recursion not working. Pin
Rick York21-Dec-17 10:49
mveRick York21-Dec-17 10:49 
QuestionTo take input for n number of arrays and print it. Pin
Tarun Jha10-Dec-17 5:55
MemberTarun Jha10-Dec-17 5:55 
AnswerRe: To take input for n number of arrays and print it. Pin
Richard MacCutchan10-Dec-17 6:49
mveRichard MacCutchan10-Dec-17 6:49 
GeneralRe: To take input for n number of arrays and print it. Pin
Tarun Jha10-Dec-17 7:11
MemberTarun Jha10-Dec-17 7: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.