Sponsored Links


Results 1 to 2 of 2

Thread: char data type in c and C++

  1. #1
    sana.pari
    Guest

    Icon14 char data type in c and C++

    Sponsored Links1


    #include <iostream.h>

    main()

    {

    char cusName;

    char carModel;

    cout<<"please enter customer name";

    cin>>cusName;

    cout<<"please enter car model";

    cin>>carModel;

    Sponsored Links

    system('pause');

    return 0;

    }



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

    what is the reason???

  2. #2
    Try to resolve your problem using char array.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Abstract data type (ADT) in C++ 2012
    By Vuhelper in forum C++ Programing
    Replies: 0
    Last Post: 01-04-2012, 09:34 PM
  2. Replies: 0
    Last Post: 07-20-2011, 10:49 PM
  3. Replies: 1
    Last Post: 05-02-2011, 06:26 AM
  4. What data type will be used in C++ program?
    By sana.pari in forum C++ Programing
    Replies: 1
    Last Post: 04-24-2011, 06:07 PM
  5. Replies: 1
    Last Post: 04-24-2011, 05:35 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
-: Vuhelp Disclaimer :-
None of the files shown here are hosted or transmitted by this server. The links are provided solely by this site's users. The administrator's or staff of Vuhelp.net cannot be held responsible for what its users post, or any other actions of its users. You may not use this site to distribute or download any material when you do not have the legal rights to do so. It is your own responsibility to adhere to these terms. If you have any doubts about legality of content or you have any suspicions, feel free to contact us.
Online Education | JhelumSoft