C++ Work shop help

This is a discussion on C++ Work shop help within the C++ Programming forums, part of the General Programming Boards category; Dear friends I am new into programming. I have some questions if you can help me to write a programming ...

  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
    21,910
    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.
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    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
    21,910
    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.
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    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, 11:39 AM
  5. DLL __cdecl doesnt seem to work?
    By Xei in forum C++ Programming
    Replies: 6
    Last Post: 08-21-2002, 04:36 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21