Results 1 to 4 of 4

Thread: C++ code need help

  1. #1
    Join Date
    Feb 2013
    Posts
    5
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded Qt Jambi PyQt3 PyQt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Android Maemo/MeeGo

    Default C++ code need help

    write a program that ask the user for a name, adders,city,state,zip code and phone number and stores each in appropriate character arrays.Use the ignore function to flush the input stream between inputs.After the strings are stored in the arrays,print the information back to the screen in the following format:

    name
    address
    city,state,zip Code
    Phone number

  2. #2
    Join Date
    Mar 2011
    Location
    Hyderabad, India
    Posts
    1,882
    Thanks
    3
    Thanked 452 Times in 435 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Wiki edits
    15

    Default Re: C++ code need help

    Do you want some one to write the program for you?
    When you know how to do it then you may do it wrong.
    When you don't know how to do it then it is not that you may do it wrong but you may not do it right.

  3. #3
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: C++ code need help

    That looks like a homework exercise: an assignment requiring the use of standard C++ streams (i.e. std::istream::ignore()) so a Qt-based solution would not be ideal. Should be trivial for someone that has been working with Qt 3, 4, and 5 in C++, Java, and Python, on Windows, Mac, Linux, phone and embedded systems.

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: C++ code need help

    Quote Originally Posted by ChrisW67 View Post
    Should be trivial for someone that has been working with Qt 3, 4, and 5 in C++, Java, and Python, on Windows, Mac, Linux, phone and embedded systems.
    Especially if he already has that experience while being only 16
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Replies: 7
    Last Post: 6th September 2012, 07:07
  2. need help in qt code
    By doforumda in forum Qt Programming
    Replies: 5
    Last Post: 27th August 2010, 13:27
  3. help! how to code this gui with qt4?
    By khong_fly2008 in forum Qt Programming
    Replies: 4
    Last Post: 6th April 2009, 14:39
  4. Pasting code from code tag in emacs
    By Gopala Krishna in forum General Discussion
    Replies: 0
    Last Post: 16th February 2007, 05:47
  5. Need help with C++ code!
    By therealjag in forum Qt Programming
    Replies: 4
    Last Post: 20th March 2006, 21:37

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.