Thanks Mario and Matticus for the replies. I am a newbie and I try to clean up some thoughts, so that would do.
Type: Posts; User: Innos
Thanks Mario and Matticus for the replies. I am a newbie and I try to clean up some thoughts, so that would do.
Why should someone try to make a GUI in c++ rather than visual basic (forms application)???
Isn't visual basic drag and drop better and easier?
Thanks in advance
Anyone knows any Visual Basic code tutorials? Because VB's coding is different from C++
What are the advantages and disadvantages on those 2 languages? Visual Basic as I have seen is much more simpler, so why someone should learn C++?
Found it! I had to add break; on each of the following if statements :D Thanks tabstop!
I get it, if I input A
((x!='A' || x!='a')=1||0=1(true)
(x!='B' || x!='b')=0||0=0 etc... So While loop get's a true evaluation and keeps looping.
I thought of this way
#include <iostream>
...
If user types 'a' then the program does p=5 . If the user types anything else except a b or c then it does the loop.
Something kind of irrelevant..
#include <iostream>
using namspace std;
cout<<"Give a,b or c\n";
char x; int p;
cin>>x;
while ((x!='A' || x!='a') || (x!='B' || x!='b') || (x!='C' ||...
Something last..
#include <iostream>
#include <stdlib.h>
using namespace std;
int main()
{
system ("Color 0c");
int pass=6101992; int x; double overtime=0.0; double salary;
int...
Correct tabstop. I was calculating my holiday hours with 70% and not 75%.. Sorry for this... ;)
Here we go again...
#include <iostream>
#include <stdlib.h>
using namespace std;
int main()
{
system ("Color 0c");
int pass=6101992; int x; double overtime=0.0; double salary;
...
What is 1000 on cin.ignore? I thought cin.ignore() is to ignore the enter as an input from the user. One solution I can come up with is after every cin input to use cin.ignore() and in the end use...
I will adjust the recommendations (instead of goto, put while, etc) to the program now.
Something last.. Why cin.get() doesn't always work?? In many of my programs I've tried cin.get() and the...
God damn! Such a simple solution and I didn't even notice! I stand corrected my friend!!
Here is the working code:
#include <iostream>
using namespace std;
int main()
{
int pass=123;...
Alright, from int I made it into double. Here is the input:
#include <iostream>
#include <conio.h>
using namespace std;
int main()
{
int pass=123; int x; double overtime; double salary;
...
All these are nice but the solution?? What is wrong with the program? Calculations are correct so why it doesn't give a correct answer?
If I put on all couts zero I get 1977749858 as a result... and if I put 1 on all couts I get 1977749687..
The worker works 22 days on each month, so 22*8=176 . Everything that is over 176 is considered overtime. For example, the user gives 186 hours so 10 hours are overtime. My calculations are the same...
Put it in a compiler and see how it works man.. Omg, maybe you would like some tea too sir?
Here's the deal:
-Payment rate is 2.55 per hour
-Night hours get paid 20% bonus
-Worked holidays get paid 75% bonus
Overtime is being paid: for the first 20 hours you get 20% bonus and from the...
I have not contradicted myself, you just didn't get the meaning of those 2 phrases mate..
It's not tailoring your explanations to my or any other beginner's liking, it's making an explanation that a BEGINNER can underestand, I do not oblige anyone to answer me but if you are going to,...
You're wrong. When you see someone who says "I've spent a day on this, please help", you better give him a good explanation on what he seeks, or if you wish to be laconic just don't post and add to...
Loop is used to repeat a block of code, meaning a block of code we mean the content which is enclosed within 2 braces
({) and (})
First of all I never had reading comprehension problems and never will I get... I don't have a teacher to fully underestand C++ and unlike (probably) any of you here I start from scratch using...