Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
char data type in c and C++
VU Help • House Banner VU Help Virtual University Students - Assignments, Solved Papers, GDB & Exam Help Student Help Forum • Collaborative • Free Support
#1
#include <iostream.h>

main()

{

char cusName;

char carModel;

cout<<"please enter customer name";

cin>>cusName;

cout<<"please enter car model";

cin>>carModel;

system('pause');

return 0;

}



in this program when program runs it doesnot prompt to take carModel.

what is the reason???
Reply
#2
Try to resolve your problem using char array.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Why we write main rgc,char**argv in C++ 2012 Vuhelper 0 3,035 01-04-2012, 10:36 PM
Last Post: Vuhelper
  Abstract data type (ADT) in C++ 2012 Vuhelper 0 7,120 01-04-2012, 10:34 PM
Last Post: Vuhelper
  call by value, call by reference,call by pointer in data structure 2012 Vuhelper 0 4,341 01-04-2012, 10:28 PM
Last Post: Vuhelper
  Balance of the AVL tree im Data structure 2012 Vuhelper 0 1,913 01-04-2012, 10:27 PM
Last Post: Vuhelper
  why we use queues data structure for level order traverse? Vuhelper 0 2,482 11-05-2011, 05:26 PM
Last Post: Vuhelper
  Linklist Data Structure Vuhelper 0 1,912 11-05-2011, 05:11 PM
Last Post: Vuhelper
  ASCII to char conversion code in C++ 2011 Vuhelper 0 1,738 11-05-2011, 05:01 PM
Last Post: Vuhelper
  Boolean data problem in c++ 2011-12 Vuhelper 0 907 08-27-2011, 08:57 PM
Last Post: Vuhelper
  Overloaded >> operator not reading more than first line from data file in c++ 2011 Vuhelper 0 926 07-23-2011, 05:38 PM
Last Post: Vuhelper
  Read data from file into arrays in c++ 2011 Vuhelper 0 927 07-20-2011, 10:58 PM
Last Post: Vuhelper

Forum Jump:


Users browsing this thread: 1 Guest(s)
VU Help • House Banner VU Help Virtual University Students - Assignments, Solved Papers, GDB & Exam Help Student Help Forum • Collaborative • Free Support