Posts Topics Forums Images
Search videos from message boards Videos Search messages from microblogs Microblogs Search messages from imdb.com Imdb Search messages from yuku.com Yuku Search messages from lefora.com (free forums) Lefora
My account: Login | Sign Up
Loading... 

Thread: C++ OverPay program help

Started 1 month, 1 week ago by A world of mysteries
I am new to programming in general and I am taking a programming class using c++ at my college I am trying to do an If Else statement but I can not figure out the problem please help #include <iostream> #include <string> using namespace std; using std::cout; // I can just type whatever I need without having to put 'cout' on every line using std::cin; // same as above int ...
Site: Myspace.com  Myspace.com - site profile
Forum: General  General - forum profile
Total authors: 3 authors
Total thread posts: 7 posts
Thread activity: no new posts during last week
Domain info for: myspace.com

Other posts in this thread:

ron replied 1 month, 1 week ago
Not familiar with C++ specifically but reading through it, it looks like the logic is good. What development environment are you using? Offhand I would say it could easily be a syntax error. Visual C++ will spot those for you and will also find improper useage of things. The express edition is free.

A world of mysteries replied 1 month, 1 week ago
Dev Bloodshed c++

Redrobes replied 1 month, 1 week ago
f (PayRate < 50) & (Hours > 40) { OverTimeHours == Hours - 40 OverTimePay == OverTimeHours * 1.5 * PayRate TotalPay == 40 * PayRate + OverTimePay; } ==> f (PayRate < 50) & (Hours > 40) { OverTimeHours = Hours - 40; OverTimePay = OverTimeHours * 1.5 * PayRate; TotalPay = 40 * PayRate + OverTimePay; } I.e. one = sign + semicolons.

Redrobes replied 1 month, 1 week ago
and add another set of brackets around the if statement bits as well.

Redrobes replied 1 month, 1 week ago
and add another set of brackets around the if statement bits as well. Oh and two && signs. Better go back to basics I think.

A world of mysteries replied 1 month ago
Redrobes: and add another set of brackets around the if statement bits as well. Oh and two && signs. Better go back to basics I think. Thanks but I actually figured it out a couple of days ago so I just got back on myspace and checked the forum..lol sorry about that how long have you been programming in c++

 

Top contributing authors

Name
Posts
A world of mysteries
3
user's latest post:
C++ OverPay program help
Published (2009-11-06 06:42:00)
Redrobes: and add another set of brackets around the if statement bits as well. Oh and two && signs. Better go back to basics I think. Thanks but I actually figured it out a couple of days ago so I just got back on myspace and checked the forum..lol sorry about that how long have you been programming in c++
Redrobes
3
user's latest post:
C++ OverPay program help
Published (2009-11-03 17:32:00)
and add another set of brackets around the if statement bits as well. Oh and two && signs. Better go back to basics I think.
ron
1
user's latest post:
C++ OverPay program help
Published (2009-11-02 07:41:00)
Not familiar with C++ specifically but reading through it, it looks like the logic is good. What development environment are you using? Offhand I would say it could easily be a syntax error. Visual C++ will spot those for you and will also find improper useage of things. The express edition is free.

Related threads on "Myspace.com":

Related threads on other sites:

Thread profile page for "C++ OverPay program help" on http://www.myspace.com. This report page is a snippet summary view from a single thread "C++ OverPay program help", located on the Message Board at http://www.myspace.com. This thread profile page shows the thread statistics for: Total Authors, Total Thread Posts, and Thread Activity