hi, im looking for some c++ language tutorials for study. and what compilator is good for newbies like me?
thx for answers


KriZstan wrote:whats with this C# stuff? like C++++ and the # has the 4 +'s so # is the short cut?


KriZstan wrote:whats with this C# stuff? like C++++ and the # has the 4 +'s so # is the short cut?

PP06 wrote:-it's good idea to have . in your PATH variable (if not, then write: $ export PATH=$PATH:. )

#include<stdio.h>
#include<conio.h>
void main ()
{
clrscr();
double x,wrk,total,totalovr;
int z;
printf("Enter Employer Class 1,2 or 3: ");
scanf("%d",&z);
printf("Enter Work Hours: ");
scanf("%lf",&wrk);
if((z==1) || (z==2) && (wrk<=40))
{
total=wrk*20;
printf("Your Total Salary is: P%lf",total);
}
else if((z==3) && (wrk>=41))
{
totalovr=((wrk-40)*35.50)+(40*20);
printf("You Total Salary W/Overtime is: P%lf",totalovr);
}
getch();
}
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr(); //clearscreen
int id,uni;
//ID
printf("With ID Enter 1,Without ID Enter 0: ");
scanf("%d",&id); //input
//Uniform
printf("With Uni Enter1,Without Uni Enter 0: ");
scanf("%d",&uni); //input
if(id==1) //decision
printf(" With ID and Uniform"); //print output
else
if(uni==0) //another decision
printf("Without ID and W/out Uniform"); //print output
else
printf("W/out or W/ ID and W/out or W/ Uniform"); //print output
getch();
}
Users browsing this forum: No registered users and 1 guest