THE BORE
General => The Superdeep Borehole => Topic started by: Madrun Badrun on October 03, 2008, 01:33:10 AM
-
I have
#include <iostream>
using namespace std;
int main()
{
float bodyHair = 0;
float weirdTallents = 0;
float socialIneptitude = 0;
float likeTravel = 0;
float carnyAverage = 0;
char animals;
char midgets ;
cout << "This program tests if you are applicable to do a certian job.";
cout << "How cofortable would you be in having tp travel for your work? (out of 10)";
cin >> likeTravel;
cout << "How cofortable would you be in working with animals? (Y/N)";
cin >> animals;
cout << "How would you rate your social skills? With 1 being poor and ten being good. ";
cin >> socialIneptitude;
cout << "Do you have any weird tallent? With 1 being none and 10 being lots";
cin >> weirdTallents;
cout << "How much body hair do you have? With 1 being litte and 10 being yetiish. ";
cin >> bodyHair;
carnyAverage = ((likeTravel + weirdTallents + bodyHair)/3) - socialIneptitude;
If (carnyAverage > 7)
If (animals == 'y' or animals == 'Y')
{
cout << "..And how cofortable would you be in working with midgets? (Y/N)";
cin >> midgets;
If (midgets == 'y' or midgets == 'Y')
{
cout << "You are perfect for carnival work!";
}
}
else
cout << "You are almost perfect for carnival work.";
else if (carnyAverage > 5)
{
cout << "You need to grow out your sholder hair a bit. Sorry";
}
else if (carnyAverage > 3)
{
cout << "Need some travel experiance before we can accept you";
}
else
cout << "You could run for president. Too bad.";
return 0;
}
I get these errors
implicit deceleration on line 43, and parse errors on 44 and 49.
-
with your spelling skills are you sure coding is the right job for you?
-
HELP ME :'( :'( :'(
-
I dont know anything like this
-
arrrrrrr
if not If FUCKERS!
still have parse errors :'(
-
that's full of soooo many typos my head is spinning
-
that's full of soooo many typos my head is spinning
but my typos are consistent!
Finally figured it out. For some reason it doesn't like using "and" or "or" as logical operators but instead needs "&&" and "||" WTF?
-
that's full of soooo many typos my head is spinning
but my typos are consistent!
Finally figured it out. For some reason it doesn't like using "and" or "or" as logical operators but instead needs "&&" and "||" WTF?
Well, it's C. Get used to it and lots of other funny stuff. After coding C for over 14 years, i still see expressions i have never seen before.
And with C++ it's even worse.
-
with your spelling skills are you sure coding is the right job for you?
:lol
-
C/C++/C#/Java is not VB. Case matters. If != if.
Speaking of which, don't try to use <> to specify !=. != is !=. && is &&, || is ||, != is !=. Got it? Good.
-
Finally figured it out. For some reason it doesn't like using "and" or "or" as logical operators but instead needs "&&" and "||" WTF?
It's not plaintext dood, of course it will use those boolean operators.
-
Finally figured it out. For some reason it doesn't like using "and" or "or" as logical operators but instead needs "&&" and "||" WTF?
It's not plaintext dood, of course it will use those boolean operators.
But "and" worked at school just fine, and I'm using the same compiler here.
I already miss simple VB :'(