Thread: Salary Program help

  1. #16
    Lurking whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    9,612
    >> You suggested switching spaces over tabs.

    Yeah so? What power does he have apart from voicing his opinion to change your mind? He's right. The OP was using tabs and it looked like ........ on the internet. None of your complaining will change that so get along.

  2. #17
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    It looked like crap because it wasn't indented properly. Now move along.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  3. #18
    Nasal Demon Xupicor's Avatar
    Join Date
    Sep 2010
    Location
    Poland
    Posts
    179
    Quote Originally Posted by http://www.answers.com/topic/rhetorical-question
    Punctuation

    Depending on the context, a rhetorical question may be punctuated by a question mark (?), full stop (.) or exclamation mark(!).[6]

    [6]http://www.whitesmoke.com/question-mark-usage#rhe
    Quote Originally Posted by http://www.whitesmoke.com/question-mark-usage#rhe
    Using question marks for indicating rhetorical question

    Check this out!
    Aren't his paintings amazing? [Interested or surprised reaction]
    Aren't his paintings amazing. [Uninterested or musing reaction]
    Aren't his paintings amazing! [Indignant or exciting reaction]

    Analysis! When the above rhetorical question is used with different punctuation marks, the rhetoric implication is altered (as shown in the brackets). This demonstrates the emotional effect punctuation marks may have in a text.
    Now, I am not a native speaker, nor English teacher, but I know my way around a rhetorical question... Or do I? :P

  4. #19
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Quote Originally Posted by http://wiki.answers.com/Q/What_is_a_rhetorical_question
    What makes a question rhetorical is that it is not asked as a question, but more as a fact or an expression, and does not require an answer.
    The rhetorical question is usually defined as any question asked for a purpose other than to obtain the information the question asks. For example, "Why are you so stupid?" is likely to be a statement regarding one's opinion of the person addressed rather than a genuine request to know. Similarly, when someone responds to a tragic event by saying, "Why me, God?!" it is more likely to be an accusation or an expression of feeling than a realistic request for information.
    A rhetorical question is a question asked which is intended to influence your opinion rather than require an answer. eg How much longer do we have to suffer this government? Obviously the questioner is not happy with the government and wants you to believe the same: he is not interested in a factual answer.
    A rhetorical question is actually a statement that's been phrased as a question to give it more impact. So, instead of saying "I am the greatest dancer in the world!", which sounds a little cheeky, one might say "Who is the greatest dancer in the world? Me!" which sounds more light-hearted, and encourages other people to agree.
    A rhetorical question is a question asked without expecting an answer. The question itself is designed to convince the listener.
    Thus, it's a statement.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  5. #20
    Nasal Demon Xupicor's Avatar
    Join Date
    Sep 2010
    Location
    Poland
    Posts
    179
    And you are going to argue about a figure of speech? I mean, I sure could, why not? There's just that one small detail - we are getting ridiculously offtopic here.

    On a side note, what your quote here calls a rhetorical question (the last example) I'd rather call a mockup dialogue, which is slightly different. Meh, like anybody here cares what that is.

  6. #21
    new to c++
    Join Date
    Feb 2009
    Posts
    53
    the code works and i can read it. how do I get all my outputs to just go to 2 decimal places? right now they come out to 4 decimal places. please help.

  7. #22
    Lurking whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    9,612
    C++ unfortunately makes formatting a clumsy affair. In C++ a programmer uses tiny objects called manipulators to change the way the stream behaves. You can find the manipulators that C++ has standard in any reference page: C++ I/O Flags [C++ Reference]. It is important that you become familiar with these.

    You can also make your own manipulators.

    It seems what you want is:

    Code:
    cout << showpoint << setprecision(2) << foobar;
    for all floating point numbers foobar.

    It is also nice to remove the format after you are done:

    Code:
    cout.resetiosflags( ios_base::showpoint );
    Forgetting to do that can make output look strange sometimes when you don't expect it.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Salary Range Calculator help please!! =(
    By bambino in forum C++ Programming
    Replies: 3
    Last Post: 04-20-2006, 06:17 PM
  2. finally my salary program but...........
    By pancho in forum C Programming
    Replies: 11
    Last Post: 02-02-2002, 11:28 PM
  3. salary program heeeelp!
    By pancho in forum C Programming
    Replies: 6
    Last Post: 02-02-2002, 08:56 PM
  4. My program, anyhelp
    By @licomb in forum C Programming
    Replies: 14
    Last Post: 08-14-2001, 10:04 PM