Need Help Inserting Code Into Win32apps

This is a discussion on Need Help Inserting Code Into Win32apps within the C++ Programming forums, part of the General Programming Boards category; Hi, new to C++ programming and need help inserting my code into one of those ready made templates from Bloodshed ...

  1. #1
    Newee needing help
    Join Date
    Jun 2004
    Posts
    3

    Need Help Inserting Code Into Win32apps

    Hi, new to C++ programming and need help inserting my code into one of those ready made templates from Bloodshed or Borland C++.

    Could someone please help?

    -Mike

    <Moderator edit: Don't use ALL CAPS. Don't ask for personal emails.>

  2. #2
    C++ Developer XSquared's Avatar
    Join Date
    Jun 2002
    Location
    Ontario, Canada
    Posts
    2,718
    Well, the first thing you should do is read the forum rules.
    Naturally I didn't feel inspired enough to read all the links for you, since I already slaved away for long hours under a blistering sun pressing the search button after typing four whole words! - Quzah

    You. Fetch me my copy of the Wall Street Journal. You two, fight to the death - Stewie

  3. #3
    Newee needing help
    Join Date
    Jun 2004
    Posts
    3
    read the forum rules. also studied my begginers guides...also asked questions from other programers. still lost. cant i just cut and paste my code into that templete??
    -Mike

  4. #4
    C++ Developer XSquared's Avatar
    Join Date
    Jun 2002
    Location
    Ontario, Canada
    Posts
    2,718
    It depends. What kind of program are you writing?
    Naturally I didn't feel inspired enough to read all the links for you, since I already slaved away for long hours under a blistering sun pressing the search button after typing four whole words! - Quzah

    You. Fetch me my copy of the Wall Street Journal. You two, fight to the death - Stewie

  5. #5
    Newee needing help
    Join Date
    Jun 2004
    Posts
    3
    just a basic math problem. solving simple add&sub&mult...etc. inserting code....

    here's the code....

    #include <iostream>

    int main()
    {
    int premot;
    int regot;
    int penot;
    int base;
    int payoff;
    int taxes;
    int childsupport;
    int slops;
    int allot;
    int draws;




    std::cout << " How many premium ot hours have you worked so far? ";
    std::cin >> premot;
    std::cout << " How many regular ot hours have you worked? ";
    std::cin >> regot;
    std::cout << " How many penalty ot hours have you worked? ";
    std::cin >> penot;
    std::cout << " How many days have you been on, so far this voyage? ";
    std::cin >> base;

    payoff = premot * 15.97 + regot * 10.32 + penot * 7.03 + base * 61.53;


    std::cout <<" \nYour Gross earnings are...$ ";
    std::cout << payoff;
    std::cout <<"\n";
    std::cout << " \nOK. Now, let's figure some deductions!!\n";
    std::cout <<"\n";
    std::cout <<" Net wages after taxes are..$ ";
    std::cout <<payoff*.765;
    std::cout <<"\n";
    std::cout <<" \nenter child support. ";
    std::cin >>childsupport;
    std::cout <<payoff*.765-childsupport;
    std::cout << " \nenter your slops.";
    std::cin >>slops;
    std::cout <<payoff*.765-childsupport-slops;
    std::cout << " \nenter your allotments. ";
    std::cin >>allot;
    std::cout <<payoff*.765-childsupport-slops-allot;
    std::cout << " \nenter your draws. ";
    std::cin >>draws;
    std::cout << "\n your payoff is...$";
    std::cout << payoff*.765-childsupport-slops-allot-draws;


    return 0;

    }

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Enforcing Machine Code Restrictions?
    By SMurf in forum Tech Board
    Replies: 21
    Last Post: 03-30-2009, 07:34 AM
  2. Proposal: Code colouring
    By Perspective in forum A Brief History of Cprogramming.com
    Replies: 28
    Last Post: 05-14-2007, 07:23 AM
  3. Values changing without reason?
    By subtled in forum C Programming
    Replies: 2
    Last Post: 04-19-2007, 10:20 AM
  4. Updated sound engine code
    By VirtualAce in forum Game Programming
    Replies: 8
    Last Post: 11-18-2004, 11:38 AM
  5. Interface Question
    By smog890 in forum C Programming
    Replies: 11
    Last Post: 06-03-2002, 05:06 PM

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