Click here to Skip to main content
13,549,157 members

ATL / WTL / STL

 
GeneralRe: Adding two matrix objects and assigning the result to third object using overloaded operators ? Pin
Tarun Jha24-Mar-18 8:17
memberTarun Jha24-Mar-18 8:17 
QuestionWhy the arrow button on TabControl is not working in my MFC application. Pin
Sampath57910-Mar-18 0:35
memberSampath57910-Mar-18 0:35 
AnswerRe: Why the arrow button on TabControl is not working in my MFC application. Pin
Richard MacCutchan10-Mar-18 1:07
protectorRichard MacCutchan10-Mar-18 1:07 
QuestionHow to change color of Tab View in MFC Pin
Member 1025302610-Mar-18 0:01
memberMember 1025302610-Mar-18 0:01 
AnswerRe: How to change color of Tab View in MFC Pin
Richard MacCutchan10-Mar-18 1:07
protectorRichard MacCutchan10-Mar-18 1:07 
QuestionMessage Closed Pin
16-Feb-18 22:39
membereod0032eod16-Feb-18 22:39 
QuestionMessage Closed Pin
13-Feb-18 5:48
memberDean Hall13-Feb-18 5:48 
Questionhow to use getchar() to store n names in an array ? Pin
Tarun Jha26-Dec-17 8:31
memberTarun Jha26-Dec-17 8: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 8:46
protectorRichard MacCutchan26-Dec-17 8:46 
AnswerRe: how to use getchar() to store n names in an array ? Pin
Rick York26-Dec-17 10:04
memberRick York26-Dec-17 10:04 
GeneralRe: how to use getchar() to store n names in an array ? Pin
Tarun Jha26-Dec-17 20:02
memberTarun Jha26-Dec-17 20:02 
Questionhow to initialize a value to pointer ? Pin
Tarun Jha21-Dec-17 9:08
memberTarun Jha21-Dec-17 9:08 
AnswerRe: how to initialize a value to pointer ? Pin
Rick York21-Dec-17 9:45
memberRick York21-Dec-17 9:45 
GeneralRe: how to initialize a value to pointer ? Pin
Tarun Jha21-Dec-17 10:20
memberTarun Jha21-Dec-17 10:20 
GeneralRe: how to initialize a value to pointer ? Pin
Rick York21-Dec-17 12:25
memberRick York21-Dec-17 12:25 
GeneralRe: how to initialize a value to pointer ? Pin
Tarun Jha26-Dec-17 8:13
memberTarun Jha26-Dec-17 8:13 
AnswerRe: how to initialize a value to pointer ? Pin
Richard MacCutchan21-Dec-17 21:42
protectorRichard MacCutchan21-Dec-17 21:42 
QuestionProblem with recursion. Pin
Tarun Jha16-Dec-17 5:46
memberTarun Jha16-Dec-17 5:46 
QuestionRe: Recursion not working. Pin
Richard MacCutchan16-Dec-17 6:24
protectorRichard MacCutchan16-Dec-17 6:24 
AnswerRe: Recursion not working. Pin
Tarun Jha16-Dec-17 7:51
memberTarun Jha16-Dec-17 7:51 
GeneralRe: Recursion not working. Pin
Richard MacCutchan16-Dec-17 9:49
protectorRichard MacCutchan16-Dec-17 9:49 
GeneralRe: Recursion not working. Pin
Rick York21-Dec-17 9:49
memberRick York21-Dec-17 9:49 
QuestionTo take input for n number of arrays and print it. Pin
Tarun Jha10-Dec-17 4:55
memberTarun Jha10-Dec-17 4:55 
AnswerRe: To take input for n number of arrays and print it. Pin
Richard MacCutchan10-Dec-17 5:49
protectorRichard MacCutchan10-Dec-17 5:49 
GeneralRe: To take input for n number of arrays and print it. Pin
Tarun Jha10-Dec-17 6:11
memberTarun Jha10-Dec-17 6: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.


Advertise | Privacy |
Web01-2016 | 2.8.180515.1 | Last Updated 20 Apr 2018
Copyright © CodeProject, 1999-2018
All Rights Reserved. Terms of Service
Layout: fixed | fluid