Thread: C++ Work shop help

  1. #1
    Registered User
    Join Date
    Oct 2007
    Posts
    2

    Question C++ Work shop help

    Dear friends

    I am new into programming. I have some questions if you can help me to write a programming code for me. i will be very thankful to you !



    Q1. Write a program that prints the sizes of the fundamental types, a few pointer
    types, and a few enumerations of your choice. Use the sizeof operator.




    Q2. Write a program that prints out the letters ‘a’ ….. ‘z’ and the digits ‘0’ … ‘9’
    and their ASCII values (in decimal).




    Q3. Modify the previous program by writing a function for printing the characters such that

    a. it accepts three arguments; the first argument is the first character to be printed and the second is the last character to be printed. The third argument is an integer value, which controls the printing mode (Character or ASCII).
    b. Use an enumerated type to specify the printing mode values.
    c. Create a header file to declare the function and the enumerated type and a source file for implementing the function. Write your main function in a separate file and properly include the header file.



    Q4. Write a function that swaps two floating point values.

  2. #2
    Registered User
    Join Date
    Jan 2007
    Location
    Euless, TX
    Posts
    144
    Check Google and maybe try CodeGuru --- look at their code examples.

  3. #3
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    I have some questions if you can help me to write a programming code for me.
    We can (try to) answer your questions and help you with your code. However, you have neither asked any questions nor shown any code that you need help on. Read our homework policy for more details.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  4. #4
    Registered User
    Join Date
    Oct 2007
    Posts
    2

    Unhappy hi

    Please if you can help write the codes for me .. i will be thankful to you ...

  5. #5
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Perhaps it was not clear:

    The purpose of these board is not for other people to do your homework for you. Try things out work on your own, homework has a purpose. If you still have trouble with a specific piece of code or concept please feel free to ask. But please do not ask people to do your entire homework for you, it simply annoys people most of the time.

    If you insist, people may actually do your homework for you. However, they will typically obfuscate the code, or deliberately misinterpret the requirements, thus causing you to fail.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. strcmp returning 1...
    By Axel in forum C Programming
    Replies: 12
    Last Post: 09-08-2006, 07:48 PM
  2. getline() don't want to work anymore...
    By mikahell in forum C++ Programming
    Replies: 7
    Last Post: 07-31-2006, 10:50 AM
  3. Why don't the tutorials on this site work on my computer?
    By jsrig88 in forum C++ Programming
    Replies: 3
    Last Post: 05-15-2006, 10:39 PM
  4. fopen();
    By GanglyLamb in forum C Programming
    Replies: 8
    Last Post: 11-03-2002, 12:39 PM
  5. DLL __cdecl doesnt seem to work?
    By Xei in forum C++ Programming
    Replies: 6
    Last Post: 08-21-2002, 04:36 PM