Click here to Skip to main content
13,768,679 members

ATL / WTL / STL

 
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
protectorRichard 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
protectorRichard MacCutchan10-Mar-18 2:07 
QuestionMessage Closed Pin
16-Feb-18 23:39
membereod0032eod16-Feb-18 23:39 
QuestionMessage Closed Pin
13-Feb-18 6:48
memberDean Hall13-Feb-18 6:48 
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
protectorRichard MacCutchan26-Dec-17 9:46 
AnswerRe: how to use getchar() to store n names in an array ? Pin
Rick York26-Dec-17 11:04
memberRick 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
memberRick 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
memberRick 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
protectorRichard 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
protectorRichard 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
protectorRichard MacCutchan16-Dec-17 10:49 
GeneralRe: Recursion not working. Pin
Rick York21-Dec-17 10:49
memberRick 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
protectorRichard 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.


Advertise | Privacy | Cookies | Terms of Service
Web01-2016 | 2.8.181116.1 | Last Updated 16 Oct 2018
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid