Hello Guest, please login or register.
Did you miss your activation email?
Login with username, password and session length.

Pages: 1 [2]   Go Down

Author Topic: Forget Game Maker  (Read 4514 times)

0 Members and 1 Guest are viewing this topic.
Re: Forget Game Maker
« Reply #20 on: February 25, 2008, 07:41:31 pm »
  • Doesn't afraid of anything
  • *
  • Reputation: +42/-0
  • Offline Offline
  • Gender: Male
  • Posts: 7002
Code: [Select]
while (cdes = 'Y' || cdes = 'y');"
should be..

Code: [Select]
while (cdes == 'Y' || cdes == 'y');"
Logged



i love big weenies and i cannot lie

Xiphirx

wat
Re: Forget Game Maker
« Reply #21 on: February 25, 2008, 07:45:51 pm »
  • Xiphirx
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 3007
yea doesnt work...
Logged
  • For The Swarm
Re: Forget Game Maker
« Reply #22 on: February 25, 2008, 07:59:36 pm »
  • (y)(;>.<;)(y)
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 3293
Compiles for me fine
« Last Edit: February 25, 2008, 08:03:05 pm by TheDarkJay »
Logged

alirazaq

Re: Forget Game Maker
« Reply #23 on: February 26, 2008, 07:37:14 am »
What program are you using?
Logged

Pedlya

Pederp
Re: Forget Game Maker
« Reply #24 on: February 26, 2008, 07:54:45 am »
  • Vote for Harvey!~
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 2408
Logged
So what! I wanna get out! 'Cos there's so much out there! So many different people, living different lives! Incredibly good guys, bad guys... Folks completely different from us! It's one huge melting pot! See, it's not about success, dying in the streets, who's better, who's not! I just want to be a part of it! I realized that even if I've no connections, no talent, even if I'm one big loser, I want to use my hands and feet to think and move, to shape my own life! We can just die here or we can try, see what we've got!

Xiphirx

wat
Re: Forget Game Maker
« Reply #25 on: February 26, 2008, 07:43:22 pm »
  • Xiphirx
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 3007
I' using devc++ 5 beta
Logged
  • For The Swarm
Re: Forget Game Maker
« Reply #26 on: February 26, 2008, 09:13:33 pm »
  • *
  • Reputation: +2/-0
  • Offline Offline
  • Posts: 280
A tip: Don't use Dev-C++, because if I'm right, it isn't updated for years now.

Better is to use Visual C++ Express/Professional (though this one isn't really needed when you start C++-coding), or Code::Blocks (you shall have to install the latest Nightly builds, and those ones come out practically all the days).
Logged

Xiphirx

wat
Re: Forget Game Maker
« Reply #27 on: March 08, 2008, 02:08:09 am »
  • Xiphirx
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 3007
***Update***
after kicking myself to continue c++...
Code: [Select]
/*
################################
C++ Calc v2
Programmed by Xiphirx
MAR 7 08
More of my beginning programs
Use it for whatever...
################################
*/
#include<iostream>
using namespace std;
int main() {
system("COLOR 3");
double dnum1;
double dnum2;
double dresult;
char cop;
string (stdes="yes");
while (stdes="yes") {
system("CLS");
cout << "Hello and welcome to C++ Calc V2!" << endl;
cout << "---------------------------------" << endl;
cout << "Please enter the first number: "; cin >> dnum1;
cout << endl;
cout << "Please enter the operator (+,-,/,*,^,s): "; cin >> cop;
cout << endl;
if (cop="^" || cop="s"){goto calc}
cout << "Please enter the second number: "; cin >> dnum2;
cout << endl;
calc:
cout << "----------Solving...------------"
switch (cop) {
case '+':
dresult=(dnum1+dnum2);
break;
case '-':
dresult=(dnum1-dnum2);
break;
case '/':
dresult=(dnum1/dnum2);
break;
case '*':
dresult=(dnum1*dnum2);
break;
case '^':
dresult=(dnum*dnum1);
break;
case 's':
dresult= sqrt (dnum1);
break;
default:
cout << "Invalid operator " << cop << " was used" << endl;
goto endwhile
break;
}
if (cop="^") { cout << "You requested "<< dnum1 << " squared" << endl;}
if (cop="s") { cout << "You requested the square root of "<<dnum1<<endl;}
else { cout << "You requested "<< dnum1 << " " << cop<< " " << dnum2 <<endl;}
cout << "The resulting number is " << dresult << endl;
endwhile:
cout << "Would you like to make another calculation?"; cin >> stdes;
}
cout << "#%#%#%#%#%#%#%#%#%#%#%#%#%#%#%#%#%\n";
cout << "#Thank you for using C++ Calc V2!%\n";
cout << "#%#%#%#%#%#%#%#%#%#%#%#%#%#%#%#%#%\n";
cout << "|                       |\n";
cout << "| - Made by Xiphirx     |\n";
cout << "| - MAR 7 08            |\n";
cout << "'-----------------------'\n";
cout <<endl;
system("PAUSE");
}   

That is what I did. It is a improved version of my crappy calculator...

I'm on the go so anyone care to compile for me?
Logged
  • For The Swarm
Pages: 1 [2]   Go Up

 


Contact Us | Legal | Advertise Here
2013 © ZFGC, All Rights Reserved



Page created in 0.278 seconds with 51 queries.