Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
i take input from getchar(); function in program in C++ 2012
#1
getchar() function takes a single character as input from user. You can store the character into a character variable or an array. For example if you have a character variable
char s;
then s = getchar(); statement will take one character from the user and store it in s.
Similarly you can get input in a character array using a loop where each iteration of loop will store one character in array's elements.

0300-9520262
Get solution in 24 hour
|cpmputer & internetConfusedmileys81:[SIZE="4"][SIZE="3"]....[/SIZE][/SIZE]
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  c++ program on unix varup 0 7,584 10-10-2012, 06:16 PM
Last Post: varup
  why we use inline function if there are simple function available, or what is the spa Vuhelper 0 21,981 05-31-2012, 01:51 AM
Last Post: Vuhelper
  Default Function Argument with example Vuhelper 0 13,336 05-31-2012, 01:47 AM
Last Post: Vuhelper
  What is the difference among calloc function ,malloc function and recalloc function? Vuhelper 0 34,594 05-31-2012, 01:46 AM
Last Post: Vuhelper
  What is Function Overloading in C++ Vuhelper 0 5,404 05-31-2012, 01:45 AM
Last Post: Vuhelper
  offline function in C++ Vuhelper 0 3,629 05-31-2012, 01:42 AM
Last Post: Vuhelper
  what is meant by trivial and non trivial in C and C++ 2012 Vuhelper 0 4,057 05-31-2012, 01:38 AM
Last Post: Vuhelper
  how we used the 1-calloc Function 2- malloc Function 3- free () 4- realloc Function i Vuhelper 1 31,143 05-31-2012, 01:35 AM
Last Post: Vuhelper
  how can i mail you the snapshot of compiled files.in C++ 2012 Vuhelper 0 2,871 05-31-2012, 01:32 AM
Last Post: Vuhelper
  What are the function of IO ports in C++ Vuhelper 0 3,602 05-31-2012, 01:27 AM
Last Post: Vuhelper

Forum Jump:


Users browsing this thread: 1 Guest(s)